Skip to content

Scheduling infrastructure for absolutely everyone.

Fix tests flakyness

zomars4c854e00ca1a
diff --git a/apps/web/playwright/auth/delete-account.e2e.ts b/apps/web/playwright/auth/delete-account.e2e.ts
index 73df266ac71..57d2b23a7f2 100644
--- a/apps/web/playwright/auth/delete-account.e2e.ts
+++ b/apps/web/playwright/auth/delete-account.e2e.ts
@@ -13,6 +13,7 @@ test("Can delete user account", async ({ page, users }) => {
await page.waitForSelector("[data-testid=dashboard-shell]");
await page.goto(`/settings/my-account/profile`);
+ await page.waitForLoadState("networkidle");
await page.click("[data-testid=delete-account]");
if (!user.username) throw Error(`Test user doesn't have a username`);
diff --git a/apps/web/playwright/auth/forgot-password.e2e.ts b/apps/web/playwright/auth/forgot-password.e2e.ts
index ead9e4e9da4..e8d3eb224fb 100644
--- a/apps/web/playwright/auth/forgot-password.e2e.ts
+++ b/apps/web/playwright/auth/forgot-password.e2e.ts
@@ -29,9 +29,7 @@ test("Can reset forgotten password", async ({ page, users }) => {
// Click text=Submit
await page.click('button[type="submit"]');
- await page.waitForSelector("text=Password updated", {
- timeout: 3000,
- });
+ await page.waitForSelector("text=Password updated");
await expect(page.locator(`text=Password updated`)).toBeVisible();
// Click button:has-text("Login")