⬆️ v3.0.0 (#704)

This commit is contained in:
Luke Vella 2023-06-19 17:17:00 +01:00 committed by GitHub
parent 735056f25f
commit c22b3abc4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
385 changed files with 19912 additions and 5250 deletions

View file

@ -42,7 +42,9 @@ test.describe.serial(() => {
await page.goto("/login");
// your login page test logic
await page.getByPlaceholder("jessie.smith@example.com").type(testUserEmail);
await page
.getByPlaceholder("jessie.smith@example.com")
.type(testUserEmail);
await page.getByText("Continue").click();
@ -58,7 +60,9 @@ test.describe.serial(() => {
await page.getByText("Create an account").waitFor();
await page.getByPlaceholder("Jessie Smith").type("Test User");
await page.getByPlaceholder("jessie.smith@example.com").type(testUserEmail);
await page
.getByPlaceholder("jessie.smith@example.com")
.type(testUserEmail);
await page.click("text=Continue");
@ -72,7 +76,7 @@ test.describe.serial(() => {
await page.getByText("Continue").click();
await expect(page.getByText("Your details")).toBeVisible();
await expect(page.getByText("No polls")).toBeVisible();
});
});
@ -83,7 +87,9 @@ test.describe.serial(() => {
await page.getByText("Create an account").waitFor();
await page.getByPlaceholder("Jessie Smith").type("Test User");
await page.getByPlaceholder("jessie.smith@example.com").type(testUserEmail);
await page
.getByPlaceholder("jessie.smith@example.com")
.type(testUserEmail);
await page.click("text=Continue");
@ -101,7 +107,9 @@ test.describe.serial(() => {
test("can login with magic link", async ({ page }) => {
await page.goto("/login");
await page.getByPlaceholder("jessie.smith@example.com").type(testUserEmail);
await page
.getByPlaceholder("jessie.smith@example.com")
.type(testUserEmail);
await page.getByText("Continue").click();
@ -121,13 +129,15 @@ test.describe.serial(() => {
page.getByText("Click here").click();
await expect(page.getByText("Your details")).toBeVisible();
await expect(page.getByText("No polls")).toBeVisible();
});
test("can login with verification code", async ({ page }) => {
await page.goto("/login");
await page.getByPlaceholder("jessie.smith@example.com").type(testUserEmail);
await page
.getByPlaceholder("jessie.smith@example.com")
.type(testUserEmail);
await page.getByText("Continue").click();
@ -137,7 +147,7 @@ test.describe.serial(() => {
await page.getByText("Continue").click();
await expect(page.getByText("Your details")).toBeVisible();
await expect(page.getByText("No polls")).toBeVisible();
});
});
});