Skip to content

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

fix(test): update LoadingState test to verify spinner visibility

Steven Enamakel4263f02b650e
diff --git a/app/src/components/ui/LoadingState.test.tsx b/app/src/components/ui/LoadingState.test.tsx
index a67249ced3..a798692fef 100644
--- a/app/src/components/ui/LoadingState.test.tsx
+++ b/app/src/components/ui/LoadingState.test.tsx
@@ -34,17 +34,11 @@ describe('ErrorBanner', () => {
});
describe('loading states', () => {
- it('renders inline and centered labels with their shared spinners', () => {
- const { container } = render(
- <>
- <InlineLoadingStatus label="Checking" />
- <CenteredLoadingState label="Loading runs" />
- </>
- );
+ it('renders a centered label with its shared spinner', () => {
+ const { container } = render(<CenteredLoadingState label="Loading runs" />);
- expect(screen.getByText('Checking')).toBeInTheDocument();
expect(screen.getByText('Loading runs')).toBeInTheDocument();
- expect(container.querySelectorAll('svg')).toHaveLength(2);
+ expect(container.querySelectorAll('svg')).toHaveLength(1);
});
});