Skip to content

Commit b9fc7ce

Browse files
committed
Fix flaky registration E2E test: increase redirect timeout
The registration test expects a redirect to /login after successful registration, but the default 5s timeout is too short in CI. Increase to 15s to account for slower backend response times under load.
1 parent 575e594 commit b9fc7ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/e2e/auth/register.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test.describe('Registration', () => {
110110
console.log('Current URL after registration:', page.url());
111111

112112
// Should be redirected to login page with success message
113-
await expect(page).toHaveURL(/\/login/);
113+
await expect(page).toHaveURL(/\/login/, { timeout: 15000 });
114114
await expect(page.getByText(/registration successful.*check your email/i)).toBeVisible();
115115

116116
// Verify that verification email was sent via Mailpit

0 commit comments

Comments
 (0)