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

Steven Enamakel8ede6d2d456c
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).