@@ -365,7 +365,7 @@ describe('ObjectPage', () => {
365365 } ) ;
366366 } ) ;
367367
368- for ( let i = 0 ; i < 50 ; i ++ ) {
368+ for ( let i = 0 ; i < 10 ; i ++ ) {
369369 it . only ( 'scroll to sections - default mode' , ( ) => {
370370 document . body . style . margin = '0px' ;
371371 cy . mount (
@@ -385,8 +385,8 @@ describe('ObjectPage', () => {
385385 cy . findByText ( 'Test' ) . should ( 'be.visible' ) ;
386386
387387 cy . get ( '[ui5-tabcontainer]' ) . findUi5TabByText ( 'Employment' ) . realClick ( ) ;
388- cy . get ( '[data-section-id="test"]' ) . shouldNeverHaveAttribute ( 'selected' ) ;
389- cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' ) ;
388+ cy . get ( '[data-section-id="test"]' ) . shouldNeverHaveAttribute ( 'selected' , 300 ) ;
389+ cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' , 300 ) ;
390390 cy . get ( `[ui5-tab][data-index="3"]` ) . should ( 'have.attr' , 'selected' ) ;
391391 cy . findByText ( 'Employment' ) . should ( 'be.visible' ) ;
392392
@@ -441,18 +441,22 @@ describe('ObjectPage', () => {
441441 cy . wait ( 200 ) ;
442442 //fallback click
443443 cy . get ( '[ui5-tabcontainer]' ) . findUi5TabByText ( 'Employment' ) . realClick ( ) ;
444- cy . get ( '[data-section-id="test"]' ) . shouldNeverHaveAttribute ( 'selected' ) ;
445- cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' ) ;
444+ cy . get ( '[data-section-id="test"]' ) . shouldNeverHaveAttribute ( 'selected' , 500 ) ;
445+ cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' , 500 ) ;
446446 cy . findByTestId ( 'footer' ) . should ( 'be.visible' ) ;
447447 cy . findByText ( 'Employment' ) . should ( 'be.visible' ) ;
448448 cy . findByText ( 'Job Information' ) . should ( 'be.visible' ) ;
449449
450+ cy . wait ( 200 ) ;
451+
450452 cy . get ( '[ui5-tabcontainer]' ) . findUi5TabByText ( 'Goals' ) . click ( ) ;
451453 cy . get ( '[data-section-id="test"]' ) . shouldNeverHaveAttribute ( 'selected' , 300 ) ;
452- cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' ) ;
454+ cy . get ( '[data-section-id="personal"]' ) . shouldNeverHaveAttribute ( 'selected' , 300 ) ;
453455 cy . findByText ( 'Test' ) . should ( 'be.visible' ) ;
454456 cy . findByTestId ( 'footer' ) . should ( 'be.visible' ) ;
455457
458+ cy . wait ( 300 ) ;
459+
456460 cy . get ( '[ui5-tabcontainer]' ) . findUi5TabByText ( 'Employment' ) . focus ( ) ;
457461 cy . realPress ( 'ArrowDown' ) ;
458462 cy . wait ( 500 ) ;
0 commit comments