From 0a24ca3fd1d91b7b8c84fc521f18dc379ddf5f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 10 Aug 2026 19:24:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20sign-up=20test=20race?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/tests/sign-up.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/tests/sign-up.spec.ts b/frontend/tests/sign-up.spec.ts index 2a09e7c935..663020bfc2 100644 --- a/frontend/tests/sign-up.spec.ts +++ b/frontend/tests/sign-up.spec.ts @@ -79,15 +79,16 @@ test("Sign up with existing email", async ({ page }) => { await fillForm(page, fullName, email, password, password) await page.getByRole("button", { name: "Sign Up" }).click() + await expect(page).toHaveURL(/\/login$/) await page.goto("/signup") await fillForm(page, fullName, email, password, password) await page.getByRole("button", { name: "Sign Up" }).click() - await page - .getByText("The user with this email already exists in the system") - .click() + await expect( + page.getByText("The user with this email already exists in the system"), + ).toBeVisible() }) test("Sign up with weak password", async ({ page }) => {