Skip to content

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

🐛 Fix flaky e2e test (#1938)

Luke Vella6976ca42599b
diff --git a/apps/web/tests/login-page.ts b/apps/web/tests/login-page.ts
index f4467cd9a..a8f53becc 100644
--- a/apps/web/tests/login-page.ts
+++ b/apps/web/tests/login-page.ts
@@ -20,7 +20,7 @@ export class LoginPage {
// Handle verification code
const code = await getCode(email);
- await this.page.getByText("Finish Logging In").waitFor();
+ await this.page.getByRole("heading", { name : "Finish Logging In" }).waitFor();
await this.page.getByPlaceholder("Enter your 6-digit code").fill(code);
// Wait for page to load