Skip to content

Commit 45be6c3

Browse files
committed
Regression test for #31203
1 parent 3cfb8d4 commit 45be6c3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

playwright/e2e/login/login.spec.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Copyright 2025 Element Creations Ltd.
3+
4+
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
5+
Please see LICENSE files in the repository root for full details.
6+
*/
7+
8+
import { expect, test } from "../../element-web-test";
9+
import { logIntoElement } from "../crypto/utils.ts";
10+
11+
test.describe(`With force_verification: true`, () => {
12+
test.use({
13+
config: {
14+
force_verification: true,
15+
},
16+
});
17+
18+
test("Can reload after login", async ({ context, credentials, page }) => {
19+
// The page should reload fine when going to the base client URL
20+
// Regression test for https://github.com/element-hq/element-web/issues/31203
21+
await logIntoElement(page, credentials);
22+
23+
// We should auto-upload the E2EE keys, and show a welcome page
24+
await expect(page.getByRole("heading", { name: `Welcome ${credentials.displayName}` })).toBeVisible();
25+
26+
await page.goto("/");
27+
28+
await expect(page.getByRole("heading", { name: `Welcome ${credentials.displayName}` })).toBeVisible();
29+
});
30+
});

0 commit comments

Comments
 (0)