Skip to content

Commit 599d22d

Browse files
committed
Try
1 parent cdd9f30 commit 599d22d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

site/e2e/tests/deployment/general.spec.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,27 @@ test("experiments", async ({ page }) => {
1515
const experimentsLocator = page.locator(
1616
"div.options-table tr.option-experiments ul.option-array",
1717
);
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())
1925

2026
// Firstly, check if available experiments are listed
2127
availableExperiments.safe.map(async (experiment) => {
2228
const experimentLocator = experimentsLocator.locator(
2329
`li.option-array-item-${experiment}`,
2430
);
25-
await expect(experimentLocator).toBeInViewport();
31+
await expect(experimentLocator).toBeVisible();
2632
});
2733

2834
// Secondly, check if all enabled experiments are listed
2935
enabledExperiments.map(async (experiment) => {
3036
const experimentLocator = experimentsLocator.locator(
3137
`li.option-array-item-${experiment}.option-enabled`,
3238
);
33-
await expect(experimentLocator).toBeInViewport();
39+
await expect(experimentLocator).toBeVisible();
3440
});
3541
});

0 commit comments

Comments
 (0)