Skip to content

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

fix(test): update FlowRunStatus test to match new status label

Steven Enamakel0e5ad90d1363
diff --git a/app/src/components/flows/FlowRunStatus.test.tsx b/app/src/components/flows/FlowRunStatus.test.tsx
index 321c84a540..4e3d084b50 100644
--- a/app/src/components/flows/FlowRunStatus.test.tsx
+++ b/app/src/components/flows/FlowRunStatus.test.tsx
@@ -81,13 +81,11 @@ describe('FlowRunStatus', () => {
const badge = screen.getByTestId('status');
expect(badge).toHaveTextContent('Completed with localized warnings');
- expect(badge).toHaveClass(
- 'inline-flex',
- 'rounded-full',
- 'border',
- 'consumer-badge-class',
- 'bg-amber-50'
- );
+ // FlowRunStatus's badge presentation now renders through the shared
+ // `Badge` primitive (outline chip + coloured dot), not the old literal
+ // `FLOW_RUN_STATUS_ACCENT` fill classes — see FLOW_RUN_STATUS_VARIANT.
+ expect(badge).toHaveClass('inline-flex', 'rounded-md', 'border', 'consumer-badge-class');
+ expect(badge).toHaveAttribute('data-variant', 'warning');
expect(badge).not.toHaveAttribute('aria-hidden');
});