@@ -101,7 +101,11 @@ describe('Chat', () => {
101101 cy . url ( ) . should ( 'include' , '/knowledge' )
102102
103103 // Wait longer for backend processing in CI environment
104- cy . wait ( 5000 )
104+ cy . wait ( 8000 )
105+
106+ // Reload the page to ensure fresh data
107+ cy . reload ( )
108+ cy . wait ( 2000 )
105109
106110 // Verify the saved chat appears in knowledge base with longer timeout
107111 cy . get ( '.rounded-xl > .w-80 > .overflow-y-auto > :nth-child(1)' , { timeout : 30000 } ) . should ( 'exist' )
@@ -170,10 +174,14 @@ describe('Chat', () => {
170174 // Navigate back to knowledge base
171175 cy . get ( '.from-emerald-500' ) . scrollIntoView ( ) . wait ( 500 ) . click ( { force : true } )
172176 cy . url ( ) . should ( 'include' , '/knowledge' )
173- cy . wait ( 3000 )
177+ cy . wait ( 5000 )
178+
179+ // Reload the page to ensure fresh data
180+ cy . reload ( )
181+ cy . wait ( 2000 )
174182
175183 // Click on the saved chat again
176- cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 20000 } ) . click ( )
184+ cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 30000 } ) . click ( )
177185 cy . wait ( 3000 )
178186
179187 // Click on the inline-flex button to add tag
@@ -194,10 +202,14 @@ describe('Chat', () => {
194202 // Navigate to knowledge base
195203 cy . get ( '.from-emerald-500' ) . scrollIntoView ( ) . wait ( 500 ) . click ( { force : true } )
196204 cy . url ( ) . should ( 'include' , '/knowledge' )
197- cy . wait ( 3000 )
205+ cy . wait ( 5000 )
206+
207+ // Reload the page to ensure fresh data
208+ cy . reload ( )
209+ cy . wait ( 2000 )
198210
199211 // Click on the saved chat to open it
200- cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 20000 } ) . click ( )
212+ cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 30000 } ) . click ( )
201213 cy . wait ( 3000 )
202214
203215 // Click the edit button
0 commit comments