Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

test: wait for mobile navigation before checking overflow

Amruth Pillaia94a4f55820b
diff --git a/tests/e2e/specs/discovery.spec.ts b/tests/e2e/specs/discovery.spec.ts
index e5f51b2e3..0612977c2 100644
--- a/tests/e2e/specs/discovery.spec.ts
+++ b/tests/e2e/specs/discovery.spec.ts
@@ -196,6 +196,9 @@ test("discovery explains unknowns and bulk partial failures keep only failed rol
await page.getByRole("button", { name: "Select all roles", exact: true }).click();
await page.getByRole("main").screenshot({ path: testInfo.outputPath("today.png") });
await page.setViewportSize({ width: 390, height: 844 });
+ await expect(
+ page.getByRole("navigation", { name: "App", exact: true }).getByRole("button", { name: "New", exact: true }),
+ ).toBeVisible();
expect(await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth)).toBe(true);
await page.getByRole("main").screenshot({ path: testInfo.outputPath("today-narrow.png") });
// One role was dismissed in another client after this list loaded. Tracking that stale selection must fail alone.