Add translations to the full credits and onboarding flows

This commit is contained in:
Alex Gleason committed 2025-11-03 12:43:47 -06:00
1 parent 37f2d937d8
commit 2399a618c7
5 files changed
+859 -151

No files matched your search

+5 -3
View File
@@ -10,7 +10,7 @@ vi.mock('@/hooks/useAISettings', () => ({
setProvider: vi.fn(),
removeProvider: vi.fn(),
setProviders: vi.fn(),
addRecentlyUsedModel: vi.fn(),
updateSettings: vi.fn(),
isConfigured: false,
@@ -42,9 +42,11 @@ describe('OnboardingDialog', () => {
</TestApp>
);
expect(screen.getByText('Welcome to Shakespeare!')).toBeInTheDocument(); // Only in dialog title now
// Translations are rendered, so we check for the actual English text
expect(screen.getByText('Welcome to Shakespeare!')).toBeInTheDocument();
expect(screen.getByText(/Your AI-powered development assistant/)).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Get Started/i })).toBeInTheDocument();
// The button now shows the translated text "Get Started"
expect(screen.getByRole('button', { name: 'Get Started' })).toBeInTheDocument();
});
it('does not render when closed', () => {