Skip to content

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

fix(tests): update CostSummary test to reflect new currency formatting

Steven Enamakelceb9fcf12310
diff --git a/app/src/components/dashboard/CostSummary.test.tsx b/app/src/components/dashboard/CostSummary.test.tsx
index f196394f72..df751d3b82 100644
--- a/app/src/components/dashboard/CostSummary.test.tsx
+++ b/app/src/components/dashboard/CostSummary.test.tsx
@@ -14,7 +14,7 @@ describe('<CostSummary />', () => {
/>
);
expect(screen.getByTestId('metric-total-spend')).toHaveTextContent('$42.50');
- expect(screen.getByTestId('metric-total-spend')).toHaveTextContent('$50.00');
+ expect(screen.getByTestId('metric-month-to-date')).toHaveTextContent('$50.00');
expect(screen.getByTestId('metric-monthly-pace')).toHaveTextContent('$181');
expect(screen.queryByTestId('metric-budget-limit')).not.toBeInTheDocument();
expect(screen.queryByTestId('budget-status-badge')).not.toBeInTheDocument();