From 7cfe13db8ca852fca1a47b3b7607fc0eb9846b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 14 Aug 2026 07:43:31 +0200 Subject: [PATCH] Follow the toast copy into the vault delete assertion --- e2e/documents.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/documents.spec.ts b/e2e/documents.spec.ts index 82114579e..5e057d5b9 100644 --- a/e2e/documents.spec.ts +++ b/e2e/documents.spec.ts @@ -392,7 +392,7 @@ test.describe("document vault", () => { await sheet.getByRole("button", { name: "Delete" }).click(); // Undo toast → restore → the card returns. - await expect(page.getByText("Document deleted.")).toBeVisible(); + await expect(page.getByText("Document deleted", { exact: true })).toBeVisible(); await expect(openButton(page, `${title}.pdf`)).not.toBeVisible(); await page.getByRole("button", { name: "Undo" }).click(); await expect(openButton(page, `${title}.pdf`)).toBeVisible();