mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Follow the toast copy into the vault delete assertion
This commit is contained in:
1 parent
83fa7856c8
commit
7cfe13db8c
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user