Skip to content

Commit 6976ca4

Browse files
authored
🐛 Fix flaky e2e test (#1938)
1 parent b24b584 commit 6976ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/tests/login-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class LoginPage {
2020

2121
// Handle verification code
2222
const code = await getCode(email);
23-
await this.page.getByText("Finish Logging In").waitFor();
23+
await this.page.getByRole("heading", { name : "Finish Logging In" }).waitFor();
2424
await this.page.getByPlaceholder("Enter your 6-digit code").fill(code);
2525

2626
// Wait for page to load

0 commit comments

Comments
 (0)