@@ -141,7 +141,7 @@ describe('Toolbar', () => {
141
141
it ( 'overflow menu' , ( ) => {
142
142
const onOverflowChange = cy . spy ( ) . as ( 'overflowChangeSpy' ) ;
143
143
cy . viewport ( 300 , 500 ) ;
144
- cy . mount ( < OverflowTestComponent onOverflowChange = { onOverflowChange } /> ) ;
144
+ cy . mount ( < OverflowTestComponent onOverflowChange = { onOverflowChange } /> , { strict : false } ) ;
145
145
cy . get ( '@overflowChangeSpy' ) . should ( 'have.been.calledOnce' ) ;
146
146
cy . findByTestId ( 'toolbarElements' ) . should ( 'have.text' , 2 ) ;
147
147
cy . findByTestId ( 'overflowElements' ) . should ( 'have.text' , 3 ) ;
@@ -159,7 +159,7 @@ describe('Toolbar', () => {
159
159
160
160
// flaky - remount component instead
161
161
// cy.get(`[ui5-toggle-button]`).click();
162
- cy . mount ( < OverflowTestComponent onOverflowChange = { onOverflowChange } /> ) ;
162
+ cy . mount ( < OverflowTestComponent onOverflowChange = { onOverflowChange } /> , { strict : false } ) ;
163
163
cy . get ( '[ui5-popover]' ) . should ( 'not.have.attr' , 'open' ) ;
164
164
165
165
cy . get ( '@overflowChangeSpy' ) . should ( 'have.callCount' , 2 ) ;
@@ -324,7 +324,8 @@ describe('Toolbar', () => {
324
324
< Toolbar data-testid = "tb" design = { design } >
325
325
< Text > Item1</ Text >
326
326
< Text > Item2</ Text >
327
- </ Toolbar >
327
+ </ Toolbar > ,
328
+ { strict : false }
328
329
) ;
329
330
let height = '44px' ; //2.75rem
330
331
let background = 'rgba(0, 0, 0, 0)' ; // transparent
@@ -371,7 +372,8 @@ describe('Toolbar', () => {
371
372
< Text data-testid = "tbi" style = { { width : '100px' } } >
372
373
Item3
373
374
</ Text >
374
- </ Toolbar >
375
+ </ Toolbar > ,
376
+ { strict : false }
375
377
) ;
376
378
cy . wait ( 200 ) ;
377
379
cy . findAllByTestId ( 'tbi' ) . each ( ( $el ) => {
@@ -395,7 +397,8 @@ describe('Toolbar', () => {
395
397
< Text data-testid = "tbi" style = { { width : '100px' } } >
396
398
Item3
397
399
</ Text >
398
- </ Toolbar >
400
+ </ Toolbar > ,
401
+ { strict : false }
399
402
) ;
400
403
cy . wait ( 200 ) ;
401
404
cy . findAllByTestId ( 'tbiV' ) . each ( ( $el ) => {
@@ -529,7 +532,7 @@ describe('Toolbar', () => {
529
532
) ;
530
533
} ;
531
534
const overflowChange = cy . spy ( ) . as ( 'overflowChange' ) ;
532
- cy . mount ( < TestComp onOverflowChange = { overflowChange } style = { { width : '200px' } } /> ) ;
535
+ cy . mount ( < TestComp onOverflowChange = { overflowChange } style = { { width : '200px' } } /> , { strict : false } ) ;
533
536
534
537
cy . get ( '[ui5-toggle-button]' ) . should ( 'not.exist' ) ;
535
538
cy . findByText ( 'add' ) . click ( ) ;
@@ -573,7 +576,8 @@ describe('Toolbar', () => {
573
576
< div id = "1" > Text1</ div >
574
577
< div > Text2 no id</ div >
575
578
< Button id = "3" > Text4</ Button >
576
- </ Toolbar >
579
+ </ Toolbar > ,
580
+ { strict : false }
577
581
) ;
578
582
579
583
cy . get ( '#1' ) . should ( 'have.length' , 1 ) ;
@@ -590,7 +594,8 @@ describe('Toolbar', () => {
590
594
< div > Text1</ div >
591
595
< div > Text2</ div >
592
596
< Button > Text4</ Button >
593
- </ Toolbar >
597
+ </ Toolbar > ,
598
+ { strict : false }
594
599
) ;
595
600
cy . get ( 'section[role="alertdialog"]' ) . should ( 'exist' ) ;
596
601
@@ -599,7 +604,8 @@ describe('Toolbar', () => {
599
604
< div > Text1</ div >
600
605
< div > Text2</ div >
601
606
< Button > Text4</ Button >
602
- </ Toolbar >
607
+ </ Toolbar > ,
608
+ { strict : false }
603
609
) ;
604
610
cy . get ( 'section' ) . should ( 'not.have.attr' , 'role' ) ;
605
611
cy . get ( '[data-component-name="ToolbarOverflowPopoverContent"]' ) . should ( 'have.attr' , 'role' , 'menu' ) ;
@@ -609,7 +615,8 @@ describe('Toolbar', () => {
609
615
< div > Text1</ div >
610
616
< div > Text2</ div >
611
617
< Button > Text4</ Button >
612
- </ Toolbar >
618
+ </ Toolbar > ,
619
+ { strict : false }
613
620
) ;
614
621
cy . get ( 'section' ) . should ( 'not.have.attr' , 'role' ) ;
615
622
cy . get ( '[data-component-name="ToolbarOverflowPopoverContent"]' ) . should ( 'have.attr' , 'role' , 'menu' ) ;
0 commit comments