@@ -93,11 +93,12 @@ describe('Chat', () => {
9393 // Wait for knowledge base to load
9494 cy . wait ( 2000 )
9595
96- // Verify the saved chat appears in knowledge base
97- cy . get ( '.rounded-xl > .w-80 > .overflow-y-auto > :nth-child(1)' ) . should ( 'exist' )
96+ // Verify the saved chat appears in knowledge base (with retry for CI)
97+ // Note: openbrain backend does additional embedding resizing which can take longer in CI
98+ cy . get ( '.rounded-xl > .w-80 > .overflow-y-auto > :nth-child(1)' , { timeout : 20000 } ) . should ( 'exist' )
9899
99100 // Verify the chat title "Chat: New Chat" appears in the knowledge base
100- cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start > .flex-1 > .font-medium' )
101+ cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start > .flex-1 > .font-medium' , { timeout : 20000 } )
101102 . should ( 'contain' , 'Chat: New Chat' )
102103
103104 // Click on the knowledge base item
@@ -162,8 +163,8 @@ describe('Chat', () => {
162163 cy . url ( ) . should ( 'include' , '/knowledge' )
163164 cy . wait ( 2000 )
164165
165- // Click on the saved chat again
166- cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' ) . click ( )
166+ // Click on the saved chat again (with timeout for CI)
167+ cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 20000 } ) . click ( )
167168 cy . wait ( 1000 )
168169
169170 // Click on the inline-flex button to add tag
@@ -186,8 +187,8 @@ describe('Chat', () => {
186187 cy . url ( ) . should ( 'include' , '/knowledge' )
187188 cy . wait ( 2000 )
188189
189- // Click on the saved chat to open it
190- cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' ) . click ( )
190+ // Click on the saved chat to open it (with timeout for CI)
191+ cy . get ( '.overflow-y-auto > :nth-child(1) > .items-start' , { timeout : 20000 } ) . click ( )
191192 cy . wait ( 1000 )
192193
193194 // Click the edit button
0 commit comments