Skip to content

Commit

Permalink
test: Fix broken tests
Browse files Browse the repository at this point in the history
The message to be shown when credentials are wrong has been changed in the backend
  • Loading branch information
PedroChaparro committed Jan 17, 2024
1 parent 76ab614 commit ba5a730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/register/RegisterStudents.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ba5a730

Please sign in to comment.