From ba5a730b3b03c02a8f66c73fa5e492043f7a309e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Andr=C3=A9s=20Chaparro=20Quintero?= Date: Tue, 16 Jan 2024 20:33:54 -0500 Subject: [PATCH] test: Fix broken tests The message to be shown when credentials are wrong has been changed in the backend --- e2e/register/RegisterStudents.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/register/RegisterStudents.spec.ts b/e2e/register/RegisterStudents.spec.ts index 44954be0..4a0d0dda 100644 --- a/e2e/register/RegisterStudents.spec.ts +++ b/e2e/register/RegisterStudents.spec.ts @@ -83,7 +83,7 @@ test.describe.serial("Student registration", () => { await page.getByRole("button", { name: "Submit" }).click(); // Assert the wrong credentials alert is shown - await expect(page.getByText("Invalid credentials")).toBeVisible(); + await expect(page.getByText("Credentials are wrong")).toBeVisible(); // Fill the form with the correct credentials await page.getByLabel("Password").fill(getDefaultPassword());