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

Commit 87bdc78

Browse files
authored
Playwright: check the welcome page is loaded and works (#12660)
1 parent 132669f commit 87bdc78

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

playwright/e2e/login/login.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ test.describe("Login", () => {
3131
await homeserver.registerUser(username, password);
3232
});
3333

34-
test("logs in with an existing account and lands on the home screen", async ({
34+
test("Loads the welcome page by default; then logs in with an existing account and lands on the home screen", async ({
3535
page,
3636
homeserver,
3737
checkA11y,
3838
}) => {
39-
await page.goto("/#/login");
39+
await page.goto("/");
40+
41+
// Should give us the welcome page initially
42+
await expect(page.getByRole("heading", { name: "Welcome to Element!" })).toBeVisible();
43+
44+
// Start the login process
45+
await page.getByRole("link", { name: "Sign in" }).click();
4046

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

0 commit comments

Comments
 (0)