Skip to content

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

test(llm-connections-panel): update test to reflect new chip tablist behaviour

Steven Enamakela1ea3e07f6d6
diff --git a/app/src/components/settings/panels/__tests__/LlmConnectionsPanel.test.tsx b/app/src/components/settings/panels/__tests__/LlmConnectionsPanel.test.tsx
index 728aefaceb..9210ac9cf1 100644
--- a/app/src/components/settings/panels/__tests__/LlmConnectionsPanel.test.tsx
+++ b/app/src/components/settings/panels/__tests__/LlmConnectionsPanel.test.tsx
@@ -31,9 +31,11 @@ describe('LlmConnectionsPanel', () => {
}
);
- it('renders no chip tablist, since there is only one surface', () => {
+ it('renders provider and routing chips below the page description', () => {
renderWithProviders(<LlmConnectionsPanel />, { initialEntries: ['/connections?tab=llm'] });
- expect(screen.queryByRole('tablist')).not.toBeInTheDocument();
+ expect(screen.getByRole('tablist', { name: 'pages.settings.ai.llm' })).toBeInTheDocument();
+ expect(screen.getByTestId('ai-tab-providers')).toBeInTheDocument();
+ expect(screen.getByTestId('ai-tab-routing')).toBeInTheDocument();
});
});