Skip to content

Commit 375af70

Browse files
authored
✅ Fix sign-up test race (#2422)
## AI Disclaimer Using Codex with gpt-5.6-sol. Reviewed manually.
1 parent 6c2122e commit 375af70

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/tests/sign-up.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,16 @@ test("Sign up with existing email", async ({ page }) => {
7979

8080
await fillForm(page, fullName, email, password, password)
8181
await page.getByRole("button", { name: "Sign Up" }).click()
82+
await expect(page).toHaveURL(/\/login$/)
8283

8384
await page.goto("/signup")
8485

8586
await fillForm(page, fullName, email, password, password)
8687
await page.getByRole("button", { name: "Sign Up" }).click()
8788

88-
await page
89-
.getByText("The user with this email already exists in the system")
90-
.click()
89+
await expect(
90+
page.getByText("The user with this email already exists in the system"),
91+
).toBeVisible()
9192
})
9293

9394
test("Sign up with weak password", async ({ page }) => {

0 commit comments

Comments
 (0)