diff --git a/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx b/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx index e18f9ed2d42..cb205b25f80 100644 --- a/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx +++ b/src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx @@ -82,12 +82,14 @@ describe('NativeChatSupportedAgents', () => { expect(value).toBe('Supported agents:') }) - it('renders the English fallback when the active locale lacks the label key', async () => { + it('renders the Spanish label when the active locale provides it', async () => { await i18n.changeLanguage('es') - expect(i18n.getResource('es', 'translation', SUPPORTED_AGENTS_LABEL_KEY)).toBeUndefined() + expect(i18n.getResource('es', 'translation', SUPPORTED_AGENTS_LABEL_KEY)).toBe( + 'Agentes compatibles:' + ) const markup = renderToStaticMarkup() - expect(markup).toContain('Supported agents:') + expect(markup).toContain('Agentes compatibles:') }) })