Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🩹 Fix flaky test (#766)

Luke Vellab8ce7522dc2f
diff --git a/apps/web/tests/authentication.spec.ts b/apps/web/tests/authentication.spec.ts
index 4e9d43efa..49199680e 100644
--- a/apps/web/tests/authentication.spec.ts
+++ b/apps/web/tests/authentication.spec.ts
@@ -76,7 +76,7 @@ test.describe.serial(() => {
await page.getByText("Continue").click();
- await expect(page.getByText("No polls")).toBeVisible();
+ await page.waitForURL("/polls");
});
});
@@ -129,7 +129,7 @@ test.describe.serial(() => {
page.getByText("Click here").click();
- await expect(page.getByText("No polls")).toBeVisible();
+ await page.waitForURL("/polls");
});
test("can login with verification code", async ({ page }) => {
@@ -147,7 +147,7 @@ test.describe.serial(() => {
await page.getByText("Continue").click();
- await expect(page.getByText("No polls")).toBeVisible();
+ await page.waitForURL("/polls");
});
});
});