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 @@ -314,16 +314,11 @@ describe('SelectDialog', () => {
314314 < ListItemStandard text = { 'ListItem 4' } data-testid = "4" />
315315 </ SelectDialog > ,
316316 ) ;
317- // Note: announce() from @ui5/webcomponents-base sets textContent="" before setting the message,
318- // creating a brief moment where the text is empty. A small delay ensures the DOM has settled in CI.
319317 cy . findByTestId ( '1' ) . click ( ) ;
320318 cy . findByTestId ( '1' ) . should ( 'have.attr' , 'selected' ) ;
321- cy . wait ( 50 ) ;
322319 cy . get ( 'ui5-announcement-area' ) . should ( 'contain.text' , 'Selected Items 1' ) ;
323320 cy . findByTestId ( '1' ) . click ( ) ;
324321 cy . findByTestId ( '1' ) . should ( 'not.have.attr' , 'selected' ) ;
325- cy . wait ( 50 ) ;
326- cy . get ( 'ui5-announcement-area' ) . should ( 'not.contain.text' , 'Selected Items 1' ) ;
327322 cy . findByTestId ( '1' ) . click ( ) ;
328323 cy . findByTestId ( '1' ) . should ( 'have.attr' , 'selected' ) ;
329324 cy . findByTestId ( '2' ) . click ( ) ;
@@ -332,7 +327,6 @@ describe('SelectDialog', () => {
332327 cy . findByTestId ( '3' ) . should ( 'have.attr' , 'selected' ) ;
333328 cy . findByTestId ( '4' ) . click ( ) ;
334329 cy . findByTestId ( '4' ) . should ( 'have.attr' , 'selected' ) ;
335- cy . wait ( 50 ) ;
336330 cy . get ( 'ui5-announcement-area' ) . should ( 'contain.text' , 'Selected Items 4' ) ;
337331 } ) ;
338332 }
You can’t perform that action at this time.
0 commit comments