From a28a4fd72afadd3d37f06bb6c8e2ad29a0984c5e Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 21 Aug 2026 15:54:11 -0700 Subject: [PATCH] Show error toast on failed report resolution --- e2e/specs/admin.spec.ts | 7 ++++--- src/app/components/Report.svelte | 9 +++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/e2e/specs/admin.spec.ts b/e2e/specs/admin.spec.ts index 25a8f578..6879a9f1 100644 --- a/e2e/specs/admin.spec.ts +++ b/e2e/specs/admin.spec.ts @@ -654,9 +654,6 @@ test("US-097 work through the action-items queue", async ({seed, as}) => { await openSpaceMenu(admin) - await expect(queueButton).toHaveText("Action Items (4)") - await expect(queueButton.locator(".bg-primary")).toHaveCount(1) - await queueButton.click() const queue = dialog(admin, "Action Items") @@ -681,6 +678,10 @@ test("US-097 work through the action-items queue", async ({seed, as}) => { await expect(carolsRequest).toContainText("requested membership in #Vault") await expect(bobsRequest).toContainText("requested membership in #Vault") + // The button summarizes what the queue holds, so it is checked against a known queue + await expect(queueButton).toHaveText("Action Items (4)") + await expect(queueButton.locator(".bg-primary")).toHaveCount(1) + await carolsRequest.getByRole("button", {name: "Accept"}).click() await expect(admin.getByRole("alert")).toContainText("Member has been added to the room!") diff --git a/src/app/components/Report.svelte b/src/app/components/Report.svelte index e6ff6983..530271c0 100644 --- a/src/app/components/Report.svelte +++ b/src/app/components/Report.svelte @@ -1,6 +1,5 @@