Improve e2e doc
parent
7a372f7e88
commit
b20579d796
|
@ -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,
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue