mirror of
https://github.com/vector-im/element-web.git
synced 2026-04-02 12:12:41 +02:00
* [create-pull-request] automated change * test: update SC tests * test: update SC screenshots * test: update EW snapshots * test: update EW tests * test: update EW e2e tests --------- Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com> Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2023 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { test, expect } from "../../element-web-test";
|
|
import { createBot, logIntoElement } from "./utils";
|
|
import { isDendrite } from "../../plugins/homeserver/dendrite";
|
|
|
|
test.describe("Complete security", () => {
|
|
test.skip(isDendrite, "Dendrite lacks support for MSC3967 so requires additional auth here");
|
|
test.use({
|
|
displayName: "Jeff",
|
|
});
|
|
|
|
test(
|
|
"Complete Security dialog appears correctly",
|
|
{ tag: "@screenshot" },
|
|
async ({ page, credentials, homeserver }) => {
|
|
await createBot(page, homeserver, credentials, true);
|
|
await logIntoElement(page, credentials);
|
|
await expect(page.getByRole("heading", { name: "Confirm your digital identity" })).toBeVisible();
|
|
await expect(page.getByRole("main")).toMatchScreenshot("complete-security.png");
|
|
},
|
|
);
|
|
|
|
test("should go straight to the welcome screen if we have no signed device", async ({
|
|
page,
|
|
homeserver,
|
|
credentials,
|
|
}) => {
|
|
await logIntoElement(page, credentials);
|
|
await expect(page.getByText("Welcome Jeff", { exact: true })).toBeVisible();
|
|
});
|
|
|
|
// see also "Verify device during login with SAS" in `verification.spec.ts`.
|
|
});
|