mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-01 18:21:52 +02:00
♻️ Add intermediate step for magic link login (#910)
This commit is contained in:
parent
825f2ece2f
commit
4f1389c510
8 changed files with 167 additions and 70 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue