mirror of https://github.com/vector-im/riot-web
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(
|
||||
"registers an account and lands on the use case selection screen",
|
||||
"registers an account and lands on the home page",
|
||||
{ tag: "@screenshot" },
|
||||
async ({ page, mailhogClient, request, checkA11y }) => {
|
||||
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.+/);
|
||||
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 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$/);
|
||||
|
||||
/*
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 507 KiB |
Loading…
Reference in New Issue