Skip to content

Commit cdd9f30

Browse files
committed
network
1 parent 005b543 commit cdd9f30

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@ test("experiments", async ({ page }) => {
1010
const enabledExperiments = await API.getExperiments();
1111

1212
// Verify if the site lists the same experiments
13-
await page.goto("/deployment/general", { waitUntil: "domcontentloaded" });
13+
await page.goto("/deployment/general", { waitUntil: "networkidle" });
1414

1515
const experimentsLocator = page.locator(
1616
"div.options-table tr.option-experiments ul.option-array",
1717
);
18-
await expect(experimentsLocator).toBeVisible();
19-
await experimentsLocator.scrollIntoViewIfNeeded()
18+
await experimentsLocator.scrollIntoViewIfNeeded();
2019

2120
// Firstly, check if available experiments are listed
2221
availableExperiments.safe.map(async (experiment) => {
2322
const experimentLocator = experimentsLocator.locator(
2423
`li.option-array-item-${experiment}`,
2524
);
26-
await expect(experimentLocator).toBeVisible();
25+
await expect(experimentLocator).toBeInViewport();
2726
});
2827

2928
// Secondly, check if all enabled experiments are listed
3029
enabledExperiments.map(async (experiment) => {
3130
const experimentLocator = experimentsLocator.locator(
3231
`li.option-array-item-${experiment}.option-enabled`,
3332
);
34-
await expect(experimentLocator).toBeVisible();
33+
await expect(experimentLocator).toBeInViewport();
3534
});
3635
});

0 commit comments

Comments
 (0)