♻️ Add intermediate step for magic link login (#910)

This commit is contained in:
Luke Vella 2023-10-24 17:42:50 +01:00 committed by GitHub
parent 825f2ece2f
commit 4f1389c510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 167 additions and 70 deletions

View file

@ -125,7 +125,13 @@ test.describe.serial(() => {
await page.goto(magicLink);
await page.getByRole("button", { name: "Continue" }).click();
await page.waitForURL("/polls");
await page.getByTestId("user-dropdown").click();
await expect(page.getByText("Test User")).toBeVisible();
});
test("can login with verification code", async ({ page }) => {
@ -144,6 +150,10 @@ test.describe.serial(() => {
await page.getByRole("button", { name: "Continue" }).click();
await page.waitForURL("/polls");
await page.getByTestId("user-dropdown").click();
await expect(page.getByText("Test User")).toBeVisible();
});
});
});