Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Playwright: check the welcome page is loaded and works (#12660)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Jun 21, 2024
1 parent 132669f commit 87bdc78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions playwright/e2e/login/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ test.describe("Login", () => {
await homeserver.registerUser(username, password);
});

test("logs in with an existing account and lands on the home screen", async ({
test("Loads the welcome page by default; then logs in with an existing account and lands on the home screen", async ({
page,
homeserver,
checkA11y,
}) => {
await page.goto("/#/login");
await page.goto("/");

// Should give us the welcome page initially
await expect(page.getByRole("heading", { name: "Welcome to Element!" })).toBeVisible();

// Start the login process
await page.getByRole("link", { name: "Sign in" }).click();

// first pick the homeserver, as otherwise the user picker won't be visible
await selectHomeserver(page, homeserver.config.baseUrl);
Expand Down

0 comments on commit 87bdc78

Please sign in to comment.