Improve e2e doc

florianduros/encryption-tab
Florian Duros 2024-12-23 16:56:25 +01:00
parent 7a372f7e88
commit b20579d796
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15
2 changed files with 3 additions and 4 deletions

View File

@ -24,11 +24,11 @@ import { ElementAppPage } from "../../pages/ElementAppPage";
import { Bot } from "../../pages/bot";
/**
* Create a bot and wait for it to be ready to use.
* Create a new device for the Alice user.
* This function will wait for the key backup to be ready.
* @param page - the page to use
* @param homeserver - the homeserver to use
* @param credentials - the credentials to use for the bot client
* @param ignoreSecretStorage - whether to ignore secret storage setup
*/
export async function createBot(
page: Page,

View File

@ -5,7 +5,6 @@
* Please see LICENSE files in the repository root for full details.
*/
// import { test, expect } from ".";
import { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api";
import { test, expect } from ".";
@ -33,7 +32,7 @@ test.describe("Recovery section in Encryption tab", () => {
test("should verify the device", { tag: "@screenshot" }, async ({ page, app, util }) => {
const dialog = await util.openEncryptionTab();
// The user can only verify the device
// The user's device is in an unverified state, therefore the only option available to them here is to verify it
const verifyButton = dialog.getByRole("button", { name: "Verify this device" });
await expect(verifyButton).toBeVisible();
await expect(util.getEncryptionTabContent()).toMatchScreenshot("verify-device-encryption-tab.png");