Docker / Docker Buildx (push) Has been cancelled
Build Debian package / Build package (release) Has been cancelled
Build and Deploy / prepare (release) Has been cancelled
Deploy release / Deploy to Cloudflare Pages (release) Has been cancelled
Build and Deploy / Trigger Pro pipeline (release) Has been cancelled
Build and Deploy / Windows arm64 (release) Has been cancelled
Build and Deploy / Windows x64 (release) Has been cancelled
Build and Deploy / macOS (release) Has been cancelled
Build and Deploy / Linux amd64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / Linux arm64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (release) Has been cancelled
Build and Deploy / Deploy builds to ESS (release) Has been cancelled
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`.
|
|
});
|