Update tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>t3chguy/remove-ftue-onboarding
parent
964c27557b
commit
b3627a119b
|
@ -32,7 +32,7 @@ test.describe("Email Registration", async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test(
|
test(
|
||||||
"registers an account and lands on the use case selection screen",
|
"registers an account and lands on the home page",
|
||||||
{ tag: "@screenshot" },
|
{ tag: "@screenshot" },
|
||||||
async ({ page, mailhogClient, request, checkA11y }) => {
|
async ({ page, mailhogClient, request, checkA11y }) => {
|
||||||
await expect(page.getByRole("textbox", { name: "Username" })).toBeVisible();
|
await expect(page.getByRole("textbox", { name: "Username" })).toBeVisible();
|
||||||
|
@ -57,7 +57,7 @@ test.describe("Email Registration", async () => {
|
||||||
const [emailLink] = messages.items[0].text.match(/http.+/);
|
const [emailLink] = messages.items[0].text.match(/http.+/);
|
||||||
await request.get(emailLink); // "Click" the link in the email
|
await request.get(emailLink); // "Click" the link in the email
|
||||||
|
|
||||||
await expect(page.locator(".mx_UseCaseSelection_skip")).toBeVisible();
|
await expect(page.getByText("Welcome alice")).toBeVisible();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -71,12 +71,6 @@ test.describe("Registration", () => {
|
||||||
await expect(termsPolicy.getByLabel("Privacy Policy")).toBeVisible();
|
await expect(termsPolicy.getByLabel("Privacy Policy")).toBeVisible();
|
||||||
|
|
||||||
await page.getByRole("button", { name: "Accept", exact: true }).click();
|
await page.getByRole("button", { name: "Accept", exact: true }).click();
|
||||||
|
|
||||||
await expect(page.locator(".mx_UseCaseSelection_skip")).toBeVisible();
|
|
||||||
await expect(page).toMatchScreenshot("use-case-selection.png", screenshotOptions);
|
|
||||||
await checkA11y();
|
|
||||||
await page.getByRole("button", { name: "Skip", exact: true }).click();
|
|
||||||
|
|
||||||
await expect(page).toHaveURL(/\/#\/home$/);
|
await expect(page).toHaveURL(/\/#\/home$/);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 507 KiB |
Loading…
Reference in New Issue