Add screenshot

This commit is contained in:
David Baker 2025-02-07 10:47:30 +01:00
parent cfd55a6887
commit f586c43a26
2 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ test.describe("Encryption tab", () => {
await expect(dialog.getByText("Forgot your recovery key? Youll need to reset your identity.")).toBeVisible();
});
test("should warn before turning off key storage", async ({ page, app, util }) => {
test("should warn before turning off key storage", { tag: "@screenshot" }, async ({ page, app, util }) => {
await verifySession(app, "new passphrase");
await util.openEncryptionTab();
@ -122,6 +122,8 @@ test.describe("Encryption tab", () => {
page.getByRole("heading", { name: "Are you sure you want to turn off key storage and delete it?" }),
).toBeVisible();
await expect(util.getEncryptionTabContent()).toMatchScreenshot("delete-key-storage-confirm.png");
await page.getByRole("button", { name: "Delete key storage" }).click();
await expect(page.getByRole("checkbox", { name: "Allow key storage" })).not.toBeChecked();

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB