Skip to content

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

test(settings-navigation): update retired route expectations for team and cron-jobs\n\nUpdate the coverage test to reflect that the `/settings/team` and `/settings/cron-jobs` routes now fall through to the home route, as their respective features have been removed or relocated. The team settings surface was removed entirely, while cron jobs moved to the Workflows module, so both slugs now resolve to `home` instead of their previous targets.\n\nAuto-committed-on: macbook\n

Steven Enamakel1b8f5fa0cdf9
diff --git a/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx b/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
index 0db02afece..c40512e8c6 100644
--- a/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
+++ b/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
@@ -52,7 +52,12 @@ describe('home route', () => {
describe('account section leaves', () => {
test('privacy resolves to privacy', () => expectRoute('/settings/privacy', 'privacy'));
test('security resolves to security', () => expectRoute('/settings/security', 'security'));
- test('team resolves to team', () => expectRoute('/settings/team', 'team'));
+ // 'team' was removed with the Team settings surface; its slug now falls
+ // through to home (the redirect to /settings/account lives in the
+ // route-elements layer).
+ test('team (retired) resolves to home', () => expectRoute('/settings/team', 'home'));
+ test('migration resolves to migration', () =>
+ expectRoute('/settings/migration', 'migration'));
});
describe('ai section leaves', () => {
@@ -88,7 +93,10 @@ describe('crypto section leaves', () => {
});
describe('developer section leaves', () => {
- test('cron-jobs resolves to cron-jobs', () => expectRoute('/settings/cron-jobs', 'cron-jobs'));
+ // Cron moved to the Workflows module (`/flows?view=schedules`), so the old
+ // settings slug falls through to home the same way 'intelligence' does.
+ test('cron-jobs (retired) resolves to home', () =>
+ expectRoute('/settings/cron-jobs', 'home'));
// 'intelligence' was retired with the Brain Knowledge & Memory cleanup — the
// old settings slug now falls through to home (redirect handled at the
// route-elements layer, which bounces it to /brain).