@@ -94,7 +94,7 @@ describe('Chat', () => {
9494 }
9595
9696 return cy . request ( {
97- url : 'http://localhost:8000/ api/documents' ,
97+ url : '/ api/v1 /documents' ,
9898 failOnStatusCode : false
9999 } ) . then ( ( response ) => {
100100 if ( response . status === 200 && response . body . documents && response . body . documents . length > 0 ) {
@@ -186,7 +186,7 @@ describe('Chat', () => {
186186 cy . url ( ) . should ( 'include' , '/knowledge' )
187187
188188 // Poll for documents to ensure they're loaded
189- cy . request ( 'http://localhost:8000/ api/documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
189+ cy . request ( '/ api/v1 /documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
190190 cy . wait ( 3000 )
191191
192192 // Wait for documents to load and click on the saved chat again
@@ -216,7 +216,7 @@ describe('Chat', () => {
216216 cy . url ( ) . should ( 'include' , '/knowledge' )
217217
218218 // Poll for documents to ensure they're loaded
219- cy . request ( 'http://localhost:8000/ api/documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
219+ cy . request ( '/ api/v1 /documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
220220 cy . wait ( 3000 )
221221
222222 // Wait for documents to load and click on the saved chat to open it
@@ -253,7 +253,7 @@ describe('Chat', () => {
253253 cy . url ( ) . should ( 'include' , '/knowledge' )
254254
255255 // Poll for documents to ensure they're loaded
256- cy . request ( 'http://localhost:8000/ api/documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
256+ cy . request ( '/ api/v1 /documents' ) . its ( 'body.documents' ) . should ( 'have.length.at.least' , 1 )
257257 cy . wait ( 3000 )
258258
259259 // Click on the first document to open it
0 commit comments