Skip to content

Commit

Permalink
Fix race condition in e2e login test (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten authored Feb 11, 2025
1 parent 87cb37c commit facaf67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/e2e-tests/authentication.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ test.describe("authentication", () => {
await page.getByLabel("Wachtwoord").fill(password);
await page.getByRole("button", { name: "Inloggen" }).click();

await page.waitForURL("/account/setup");

// TODO: use new page object when we know which page to render
await expect(page.getByRole("alert")).toContainText("Inloggen gelukt");
});
Expand Down

0 comments on commit facaf67

Please sign in to comment.