FN-6342: mock optional workflow steps in mobile board tests

Keep the mobile board test API mock aligned with WorkflowSelector's optional-step loading.

- Add fetchWorkflowOptionalSteps to the dashboard API mock used by board-mobile tests.
- Return an empty optional-step list so WorkflowSelector mount effects can settle without missing mock failures.

Files changed:
 packages/dashboard/app/components/__tests__/board-mobile.test.tsx | 1 +
 1 file changed, 1 insertion(+)

Fusion-Task-Id: FN-6342

Fusion-Task-Lineage: 750c296d-b559-4b71-9038-1640e0ce6b68
This commit is contained in:
gsxdsm
2026-06-13 00:40:34 -07:00
parent 7582bddba3
commit e00aac8672

View File

@@ -26,6 +26,7 @@ vi.mock("../../api", () => ({
} satisfies Partial<Settings>),
updateGlobalSettings: vi.fn(),
fetchAgents: vi.fn().mockResolvedValue([]),
fetchWorkflowOptionalSteps: vi.fn().mockResolvedValue([]),
// InlineCreateCard renders WorkflowSelector, which loads these on mount.
fetchWorkflows: vi.fn().mockResolvedValue([]),
fetchProjectDefaultWorkflow: vi.fn().mockResolvedValue({ workflowId: null }),