@@ -8,7 +8,7 @@ test.describe("varying a component and varying again with a different toggle poi
88 test . describe ( "when no experiments header set" , ( ) => {
99 test ( "it shows the control module" , async ( { page } ) => {
1010 await page . goto ( fixtureURL ) ;
11- await expect ( locateWithinExample ( page , "control 1" ) ) . toBeInViewport ( ) ;
11+ await expect ( locateWithinExample ( page , "control 1" ) ) . toBeVisible ( ) ;
1212 } ) ;
1313 } ) ;
1414
@@ -17,7 +17,7 @@ test.describe("varying a component and varying again with a different toggle poi
1717
1818 test ( "it shows a varied module" , async ( { page } ) => {
1919 await page . goto ( fixtureURL ) ;
20- await expect ( locateWithinExample ( page , "variant 1" ) ) . toBeInViewport ( ) ;
20+ await expect ( locateWithinExample ( page , "variant 1" ) ) . toBeVisible ( ) ;
2121 } ) ;
2222
2323 test . describe ( "when the 'a' key is pressed" , ( ) => {
@@ -27,10 +27,10 @@ test.describe("varying a component and varying again with a different toggle poi
2727 await page . goto ( fixtureURL ) ;
2828 await page . waitForTimeout ( 50 ) ;
2929 await page . keyboard . down ( "a" ) ;
30- await expect ( locateWithinExample ( page , "variant 1" ) ) . toBeInViewport ( ) ;
30+ await expect ( locateWithinExample ( page , "variant 1" ) ) . toBeVisible ( ) ;
3131 await expect (
3232 page . locator ( "p" , { hasText : "pressed: a" } )
33- ) . toBeInViewport ( ) ;
33+ ) . toBeVisible ( ) ;
3434 } ) ;
3535 } ) ;
3636
@@ -41,10 +41,10 @@ test.describe("varying a component and varying again with a different toggle poi
4141 await page . goto ( fixtureURL ) ;
4242 await page . waitForTimeout ( 50 ) ;
4343 await page . keyboard . down ( "n" ) ;
44- await expect ( locateWithinExample ( page , "variant 2" ) ) . toBeInViewport ( ) ;
44+ await expect ( locateWithinExample ( page , "variant 2" ) ) . toBeVisible ( ) ;
4545 await expect (
4646 page . locator ( "p" , { hasText : "pressed: n" } )
47- ) . toBeInViewport ( ) ;
47+ ) . toBeVisible ( ) ;
4848 } ) ;
4949 } ) ;
5050 } ) ;
0 commit comments