Skip to content

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

fix(settings): correct navigation test to cover all settings sections

Steven Enamakele20a482173ae
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 f961c3d778..6d9b0ce448 100644
--- a/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
+++ b/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
@@ -79,9 +79,14 @@ describe('integrations (retired)', () => {
test('integrations resolves to home', () => expectRoute('/settings/integrations', 'home'));
});
-describe('notifications', () => {
- test('notifications resolves to notifications', () =>
- expectRoute('/settings/notifications', 'notifications'));
+describe('notifications (retired)', () => {
+ // The Notifications settings page was removed entirely — `notifications`
+ // no longer has a registry entry, so the slug falls through to home the
+ // same way other retired hub slugs do. The route itself redirects to
+ // /settings/account at the route-elements layer (`settingsRouteElements`);
+ // this test only covers `getCurrentRoute`'s pure slug resolution.
+ test('notifications (retired) resolves to home', () =>
+ expectRoute('/settings/notifications', 'home'));
});
describe('crypto section leaves', () => {