Fix E2E tests for login

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-10-28 17:17:29 +02:00
parent bc6c0e0448
commit 4eb15b5ebf
3 changed files with 13 additions and 8 deletions

View File

@@ -14,7 +14,9 @@ test("Login has everything we need", async ({ page }) => {
hasText: "Didn't receive the instructions?",
});
const registerLink = page.locator("a", { hasText: "Create an account" });
const registerLink = page.locator("a > span > span", {
hasText: "Create an account",
});
await expect(forgotPasswordLink).toBeVisible();
await expect(reAskInstructionsLink).toBeVisible();