File tree 1 file changed +9
-3
lines changed
site/e2e/tests/deployment
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,27 @@ test("experiments", async ({ page }) => {
15
15
const experimentsLocator = page . locator (
16
16
"div.options-table tr.option-experiments ul.option-array" ,
17
17
) ;
18
- await experimentsLocator . scrollIntoViewIfNeeded ( ) ;
18
+ await expect ( experimentsLocator ) . toBeVisible ( ) ;
19
+
20
+ await experimentsLocator . focus ( ) ;
21
+ await page . mouse . wheel ( 0 , 600 ) ;
22
+
23
+ // eslint-disable-next-line no-console -- HTML for experiments
24
+ console . log ( experimentsLocator . innerHTML ( ) )
19
25
20
26
// Firstly, check if available experiments are listed
21
27
availableExperiments . safe . map ( async ( experiment ) => {
22
28
const experimentLocator = experimentsLocator . locator (
23
29
`li.option-array-item-${ experiment } ` ,
24
30
) ;
25
- await expect ( experimentLocator ) . toBeInViewport ( ) ;
31
+ await expect ( experimentLocator ) . toBeVisible ( ) ;
26
32
} ) ;
27
33
28
34
// Secondly, check if all enabled experiments are listed
29
35
enabledExperiments . map ( async ( experiment ) => {
30
36
const experimentLocator = experimentsLocator . locator (
31
37
`li.option-array-item-${ experiment } .option-enabled` ,
32
38
) ;
33
- await expect ( experimentLocator ) . toBeInViewport ( ) ;
39
+ await expect ( experimentLocator ) . toBeVisible ( ) ;
34
40
} ) ;
35
41
} ) ;
You can’t perform that action at this time.
0 commit comments