Skip to content

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

fix(tests): update FlowCanvasPage test to reflect new behavior

Steven Enamakelc0f52e8d126c
diff --git a/app/src/pages/__tests__/FlowCanvasPage.test.tsx b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
index a829244080..d309d6df25 100644
--- a/app/src/pages/__tests__/FlowCanvasPage.test.tsx
+++ b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
@@ -28,6 +28,9 @@ const validateFlow = vi.hoisted(() => vi.fn());
const listFlowConnections = vi.hoisted(() => vi.fn());
const runFlowDetached = vi.hoisted(() => vi.fn());
const setFlowEnabled = vi.hoisted(() => vi.fn());
+// Backs the projected `FlowRunsSidebar` (real, not stubbed) so the side-panel
+// switching tests below can click a real run row to open the Run tab.
+const listFlowRuns = vi.hoisted(() => vi.fn());
vi.mock('../../services/api/flowsApi', () => ({
getFlow,
updateFlow,
@@ -36,6 +39,7 @@ vi.mock('../../services/api/flowsApi', () => ({
listFlowConnections,
runFlowDetached,
setFlowEnabled,
+ listFlowRuns,
}));
// F-M1: a tiny in-memory socket stand-in (same shape as