Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(FlowCanvasPage): correct test assertion for empty canvas state

Steven Enamakel85526e8acb24
diff --git a/app/src/pages/__tests__/FlowCanvasPage.test.tsx b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
index 9161183c64..1d6fa0ede0 100644
--- a/app/src/pages/__tests__/FlowCanvasPage.test.tsx
+++ b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
@@ -45,6 +45,9 @@ vi.mock('../../services/api/flowsApi', () => ({
setFlowEnabled,
listFlowRuns,
}));
+// Default to an empty list (see the doc comment above) — overridden per test
+// via `listFlowRuns.mockResolvedValue(...)` where the run list itself matters.
+listFlowRuns.mockResolvedValue([]);
// F-M1: a tiny in-memory socket stand-in (same shape as
// `EditableFlowCanvas.runOverlay.test.tsx`) so a `flow:run_progress` event can