Scheduling infrastructure for absolutely everyone.
fix: few more e2e flakes (#23966)
Anik Dhabal Babucf89046ede1a
diff --git a/apps/web/playwright/fixtures/users.ts b/apps/web/playwright/fixtures/users.tsindex cd5370e4225..d4ac303f0fd 100644--- a/apps/web/playwright/fixtures/users.ts+++ b/apps/web/playwright/fixtures/users.ts@@ -684,6 +684,10 @@ const createUserFixture = (user: UserWithIncludes, page: Page) => {},logout: async () => {await page.goto("/auth/logout");+ const logoutBtn = page.getByTestId("logout-btn");+ await expect(logoutBtn).toHaveText("Go back to the login page");+ await page.reload();+ await expect(logoutBtn).toHaveText("Go back to the login page");},getFirstTeamMembership: async () => {const memberships = await prisma.membership.findMany({diff --git a/apps/web/playwright/insights.e2e.ts b/apps/web/playwright/insights.e2e.tsindex 5f81d411d3d..49ca82fd557 100644--- a/apps/web/playwright/insights.e2e.ts+++ b/apps/web/playwright/insights.e2e.ts@@ -271,7 +271,9 @@ test.describe("Insights", async () => {];for (const title of expectedChartTitles) {- const chartCard = page.locator("[data-testid='panel-card'] h2").filter({ hasText: title });+ const chartCard = page+ .locator("[data-testid='panel-card'] h2")+ .filter({ hasText: new RegExp(`^${title}$`) });await expect(chartCard).toBeVisible();}});