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
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -81,6 +81,7 @@ vi.mock("lucide-react", () => ({
|
||||
ClipboardCheck: () => null,
|
||||
ListChecks: () => null,
|
||||
Code2: () => null,
|
||||
Bell: () => null,
|
||||
}));
|
||||
|
||||
vi.mock("../../hooks/useAgentLogs", () => ({
|
||||
|
||||
Reference in New Issue
Block a user