From b1c4f7a4d30b029c774ccf0a9cf55d2bf4849f24 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 9 Jun 2026 06:38:24 -0700 Subject: [PATCH] FN-6075: stabilize board workflow toolbar tests Keep board workflow tests aligned with the collapsible toolbar UI.\n\n- exclude the workflow collapse toggle from toolbar action aria-label assertions in Board tests\n- extend task detail modal lucide-react mocks with the Bell icon used by the updated UI\n\nFiles changed:\n packages/dashboard/app/components/__tests__/Board.test.tsx | 4 +++-\n .../app/components/__tests__/TaskDetailModal.test-helpers.ts | 1 +\n 2 files changed, 4 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-6075 Fusion-Task-Lineage: 65d7317b-2623-409f-af71-a4512b7919e1 --- packages/dashboard/app/components/__tests__/Board.test.tsx | 4 +++- .../app/components/__tests__/TaskDetailModal.test-helpers.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/app/components/__tests__/Board.test.tsx b/packages/dashboard/app/components/__tests__/Board.test.tsx index e1a24c4d3c..8297750cbd 100644 --- a/packages/dashboard/app/components/__tests__/Board.test.tsx +++ b/packages/dashboard/app/components/__tests__/Board.test.tsx @@ -934,7 +934,9 @@ describe("Board", () => { function workflowToolbarActionNames() { const toolbar = document.querySelector(".board-workflow-toolbar"); expect(toolbar).not.toBeNull(); - return Array.from(toolbar?.querySelectorAll("button") ?? []).map((button) => button.getAttribute("aria-label")); + return Array.from(toolbar?.querySelectorAll("button") ?? []) + .filter((button) => !button.classList.contains("board-workflow-collapse-toggle")) + .map((button) => button.getAttribute("aria-label")); } it("flag OFF renders the legacy single-lane board byte-identically", async () => { diff --git a/packages/dashboard/app/components/__tests__/TaskDetailModal.test-helpers.ts b/packages/dashboard/app/components/__tests__/TaskDetailModal.test-helpers.ts index 8473ce45c2..096977d893 100644 --- a/packages/dashboard/app/components/__tests__/TaskDetailModal.test-helpers.ts +++ b/packages/dashboard/app/components/__tests__/TaskDetailModal.test-helpers.ts @@ -81,6 +81,7 @@ vi.mock("lucide-react", () => ({ ClipboardCheck: () => null, ListChecks: () => null, Code2: () => null, + Bell: () => null, })); vi.mock("../../hooks/useAgentLogs", () => ({