Skip to content

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

test(settings): add tests for route registry and account panel

Steven Enamakel81b25673f431
diff --git a/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts b/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts
index e01b0fc9f6..b6ef58b714 100644
--- a/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts
+++ b/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts
@@ -135,9 +135,14 @@ describe('entriesForSection', () => {
expect(allIds).not.toContain('webhooks-triggers');
});
- it('returns multiple developer entries', () => {
+ it('returns the surviving developer entries', () => {
+ // Most former Developer & Diagnostics entries (agents, autonomy,
+ // agent-access, sandbox-settings, tools, voice, embeddings, heartbeat,
+ // migration, security, etc.) moved to their canonical section pages in
+ // the redesign; only a handful of dev-only diagnostics stayed here.
const devEntries = entriesForSection('developer');
- expect(devEntries.length).toBeGreaterThanOrEqual(5);
+ const ids = devEntries.map(e => e.id);
+ expect(ids.sort()).toEqual(['event-log', 'search', 'tool-policy-diagnostics']);
devEntries.forEach(e => {
expect(e.section).toBe('developer');
expect(e.hiddenDeepLink).not.toBe(true);
diff --git a/app/src/components/settings/panels/__tests__/AccountPanel.test.tsx b/app/src/components/settings/panels/__tests__/AccountPanel.test.tsx
index cdd3d33853..766406ffc1 100644
--- a/app/src/components/settings/panels/__tests__/AccountPanel.test.tsx
+++ b/app/src/components/settings/panels/__tests__/AccountPanel.test.tsx
@@ -1,9 +1,9 @@
/**
* Tests for the Settings → Account landing panel.
*
- * Verifies that the signed-in summary header renders the user's display name,
- * username and avatar initial when a current user is present, and that the
- * summary block is omitted entirely when there is no name/username.
+ * Verifies that the signed-in summary header renders the user's display name
+ * and a "signed in" label when a current user is present, and that the name
+ * is omitted (while the signed-in label still renders) when no name is set.
*/
import { screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';