File tree Expand file tree Collapse file tree
packages/main/src/components/SelectDialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,14 +315,14 @@ describe('SelectDialog', () => {
315315 </ SelectDialog > ,
316316 ) ;
317317 // Note: announce() from @ui5/webcomponents-base sets textContent="" before setting the message,
318- // creating a brief moment where the text is empty. cy.wait(0) yields to the event loop to let the DOM settle .
318+ // creating a brief moment where the text is empty. A small delay ensures the DOM has settled in CI .
319319 cy . findByTestId ( '1' ) . click ( ) ;
320320 cy . findByTestId ( '1' ) . should ( 'have.attr' , 'selected' ) ;
321- cy . wait ( 0 ) ;
321+ cy . wait ( 50 ) ;
322322 cy . get ( 'ui5-announcement-area' ) . should ( 'contain.text' , 'Selected Items 1' ) ;
323323 cy . findByTestId ( '1' ) . click ( ) ;
324324 cy . findByTestId ( '1' ) . should ( 'not.have.attr' , 'selected' ) ;
325- cy . wait ( 0 ) ;
325+ cy . wait ( 50 ) ;
326326 cy . get ( 'ui5-announcement-area' ) . should ( 'not.contain.text' , 'Selected Items 1' ) ;
327327 cy . findByTestId ( '1' ) . click ( ) ;
328328 cy . findByTestId ( '1' ) . should ( 'have.attr' , 'selected' ) ;
@@ -332,7 +332,7 @@ describe('SelectDialog', () => {
332332 cy . findByTestId ( '3' ) . should ( 'have.attr' , 'selected' ) ;
333333 cy . findByTestId ( '4' ) . click ( ) ;
334334 cy . findByTestId ( '4' ) . should ( 'have.attr' , 'selected' ) ;
335- cy . wait ( 0 ) ;
335+ cy . wait ( 50 ) ;
336336 cy . get ( 'ui5-announcement-area' ) . should ( 'contain.text' , 'Selected Items 4' ) ;
337337 } ) ;
338338 }
You can’t perform that action at this time.
0 commit comments