Follow the toast copy into the vault delete assertion

This commit is contained in:
Marc-André Bombeck committed 2026-08-14 07:43:31 +02:00
1 parent 83fa7856c8
commit 7cfe13db8c
1 file changed
+1 -1
+1 -1
View File
@@ -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();