Skip to content

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

fix(flows): remove duplicate test file for FlowRunInspectorDrawer

Steven Enamakel0392d61c7a19
diff --git a/app/src/components/flows/FlowRunsDrawer.test.tsx b/app/src/components/flows/FlowRunsDrawer.test.tsx
index 8f5216a73a..c05907b2d1 100644
--- a/app/src/components/flows/FlowRunsDrawer.test.tsx
+++ b/app/src/components/flows/FlowRunsDrawer.test.tsx
@@ -203,9 +203,9 @@ describe('FlowRunsDrawer', () => {
const row = await screen.findByTestId('flow-run-row-run-1');
await waitFor(() => expect(row).toHaveTextContent('Awaiting approval'));
- expect(screen.getByTestId('flow-run-row-dot-run-1')).toHaveClass(
- 'bg-amber-500',
- 'animate-pulse'
+ expect(screen.getByTestId('flow-run-row-dot-run-1')).toHaveAttribute(
+ 'data-status',
+ 'pending_approval'
);
});
@@ -216,10 +216,7 @@ describe('FlowRunsDrawer', () => {
const row = await screen.findByTestId('flow-run-row-run-1');
await waitFor(() => expect(row).toHaveTextContent('Running'));
- expect(screen.getByTestId('flow-run-row-dot-run-1')).toHaveClass(
- 'bg-primary-500',
- 'animate-pulse'
- );
+ expect(screen.getByTestId('flow-run-row-dot-run-1')).toHaveAttribute('data-status', 'running');
});
it('falls back to a generic title when no flowName is given', async () => {
diff --git a/app/src/components/flows/__tests__/FlowRunInspectorDrawer.test.tsx b/app/src/components/flows/__tests__/FlowRunInspectorDrawer.test.tsx
index b00ba2ee9f..464194a8b9 100644
--- a/app/src/components/flows/__tests__/FlowRunInspectorDrawer.test.tsx
+++ b/app/src/components/flows/__tests__/FlowRunInspectorDrawer.test.tsx
@@ -96,8 +96,11 @@ describe('FlowRunInspectorDrawer', () => {
renderDrawer('thread-1', vi.fn());
expect(screen.getByTestId('flow-run-status-pill')).toHaveTextContent('Running');
- expect(screen.getByTestId('flow-run-status-pill')).toHaveClass('bg-primary-50');
- expect(screen.getByTestId('flow-run-status-dot')).toHaveClass('bg-primary-500', 'animate-pulse');
+ // Assert the semantic status the pill/dot advertise, not the Tailwind
+ // colour classes they happen to render with: a class-pinned assertion is
+ // exactly what let the undefined `ocean-*` scale ship unnoticed.
+ expect(screen.getByTestId('flow-run-status-pill')).toHaveAttribute('data-status', 'running');
+ expect(screen.getByTestId('flow-run-status-dot')).toHaveAttribute('data-status', 'running');
expect(screen.getByTestId('flow-run-steps')).toBeInTheDocument();
expect(screen.getByText('fetch-data')).toBeInTheDocument();
expect(screen.getByText('branch')).toBeInTheDocument();