@@ -379,7 +379,12 @@ context('Tabs', () => {
379
379
cy . saveDocumentType ( tabsDocType ) ;
380
380
OpenDocTypeFolder ( ) ;
381
381
cy . get ( '[alias="reorder"]' ) . click ( ) ;
382
- cy . get ( '.umb-group-builder__tabs-overflow--right > .caret' ) . click ( ) . click ( ) ;
382
+ cy . get ( 'body' )
383
+ . then ( ( $body ) => {
384
+ while ( $body . find ( '.umb-group-builder__tabs-overflow--right > .caret' ) . hasClass ( 'active' ) ) {
385
+ cy . click ( ) ;
386
+ }
387
+ } ) ;
383
388
cy . get ( '.umb-group-builder__tab' ) . last ( ) . click ( ) ;
384
389
cy . get ( '.umb-group-builder__group-title-icon' ) . last ( ) . trigger ( 'mousedown' , { which : 1 } )
385
390
cy . get ( '.umb-group-builder__tab' ) . eq ( 1 ) . trigger ( 'mousemove' , { which : 1 , force : true } ) ;
@@ -426,7 +431,12 @@ context('Tabs', () => {
426
431
OpenDocTypeFolder ( ) ;
427
432
cy . get ( '[alias="reorder"]' ) . click ( ) ;
428
433
//Scroll right so we can see tab 2
429
- cy . get ( '.umb-group-builder__tabs-overflow--right > .caret' ) . click ( ) . click ( ) ;
434
+ cy . get ( 'body' )
435
+ . then ( ( $body ) => {
436
+ while ( $body . find ( '.umb-group-builder__tabs-overflow--right > .caret' ) . hasClass ( 'active' ) ) {
437
+ cy . click ( ) ;
438
+ }
439
+ } ) ;
430
440
cy . get ( '.umb-group-builder__tab-title-icon' ) . eq ( 1 ) . trigger ( 'mousedown' , { which : 1 } )
431
441
cy . get ( '.umb-group-builder__tab' ) . eq ( 1 ) . trigger ( 'mousemove' , { which : 1 , force : true } ) ;
432
442
cy . get ( '.umb-group-builder__tab' ) . eq ( 1 ) . should ( 'have.class' , 'is-active' ) . trigger ( 'mouseup' , { force :true } ) ;
@@ -473,7 +483,12 @@ context('Tabs', () => {
473
483
OpenDocTypeFolder ( ) ;
474
484
cy . get ( '[alias="reorder"]' ) . click ( ) ;
475
485
//Scroll so we are sure we see tab 2
476
- cy . get ( '.umb-group-builder__tabs-overflow--right > .caret' ) . click ( ) . click ( ) ;
486
+ cy . get ( 'body' )
487
+ . then ( ( $body ) => {
488
+ while ( $body . find ( '.umb-group-builder__tabs-overflow--right > .caret' ) . hasClass ( 'active' ) ) {
489
+ cy . click ( ) ;
490
+ }
491
+ } ) ;
477
492
//Navigate to tab 2
478
493
cy . get ( '.umb-group-builder__tab' ) . last ( ) . click ( ) ;
479
494
cy . get ( '.umb-group-builder__property-meta > .flex > .icon' ) . eq ( 1 ) . trigger ( 'mousedown' , { which : 1 } )
0 commit comments