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();