Skip to content

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

fix(settings): correct search panel test and i18n coverage test

Steven Enamakel1fa9c40fc6e4
diff --git a/app/src/components/settings/panels/SearchPanel.test.tsx b/app/src/components/settings/panels/SearchPanel.test.tsx
index ef655b048a..dbad7504e1 100644
--- a/app/src/components/settings/panels/SearchPanel.test.tsx
+++ b/app/src/components/settings/panels/SearchPanel.test.tsx
@@ -221,6 +221,18 @@ describe('SearchPanel — page and on/off', () => {
});
describe('SearchPanel — connected providers', () => {
+ // #5136: the managed path must not read as an unattributed black box, so
+ // every provider reached via TinyHumans is named on its own row.
+ test('providers reached via TinyHumans are each named', async () => {
+ await renderPanel();
+ for (const id of ['exa', 'gemini']) {
+ expect(row(id)).toHaveTextContent(id === 'exa' ? 'Exa' : 'Gemini');
+ expect(screen.getByTestId(`search-provider-${id}-detail`)).toHaveTextContent(
+ 'settings.search.routeManaged'
+ );
+ }
+ });
+
test('lists only enabled providers, each with how it is reached', async () => {
await renderPanel();
expect(row('exa')).toBeInTheDocument();
diff --git a/app/src/lib/i18n/__tests__/coverage.test.ts b/app/src/lib/i18n/__tests__/coverage.test.ts
index 5999954375..c3e02edf59 100644
--- a/app/src/lib/i18n/__tests__/coverage.test.ts
+++ b/app/src/lib/i18n/__tests__/coverage.test.ts
@@ -62,12 +62,4 @@ describe('i18n coverage', () => {
expect(keysWithEmDashes).toEqual([]);
});
- // The search copy must name the providers included with TinyHumans, so the
- // managed path does not read as an unattributed black box (#5136). Provider
- // names are proper nouns, so they stay literal in every locale.
- it.each(['en', ...LOCALES])('locale %s names the included search providers', locale => {
- const flat = locale === 'en' ? enFlat : loadLocale(locale);
- expect(flat['settings.search.description']).toContain('Exa');
- expect(flat['settings.search.description']).toContain('Gemini');
- });
});