From cb3fb88a757f63be2eb12b314d94bad5436e0a17 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 2 Jan 2026 19:41:06 -0600 Subject: [PATCH] Fix tests --- src/components/AddSharedProviderDialog.test.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/AddSharedProviderDialog.test.tsx b/src/components/AddSharedProviderDialog.test.tsx index 5ed72aa7..7f4a34e1 100644 --- a/src/components/AddSharedProviderDialog.test.tsx +++ b/src/components/AddSharedProviderDialog.test.tsx @@ -26,9 +26,9 @@ describe('AddSharedProviderDialog', () => { ); - // Provider name is used as the heading (fallback to id since it's not in presets) - expect(screen.getByRole('heading', { name: 'test-provider' })).toBeInTheDocument(); - expect(screen.getByText(/Add test-provider to your configuration/i)).toBeInTheDocument(); + // Provider name is displayed in the heading + expect(screen.getByRole('heading', { name: 'Test Provider' })).toBeInTheDocument(); + expect(screen.getByText(/Add Test Provider to your configuration/i)).toBeInTheDocument(); }); it('shows add provider button for new provider', () => { @@ -112,7 +112,7 @@ describe('AddSharedProviderDialog', () => { expect(screen.getByText(/Add OpenRouter to your configuration/i)).toBeInTheDocument(); }); - it('uses provider id as fallback name when not in presets', () => { + it('uses provider name when not in presets', () => { const onOpenChange = vi.fn(); const customProvider: AIProvider = { id: 'my-custom-provider', @@ -130,7 +130,7 @@ describe('AddSharedProviderDialog', () => { ); - // Should use the id as the name since it's not in presets - expect(screen.getByText(/Add my-custom-provider to your configuration/i)).toBeInTheDocument(); + // Should use the provider name even when not in presets + expect(screen.getByText(/Add My Custom Provider to your configuration/i)).toBeInTheDocument(); }); });