Skip to content

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

chore(tests): remove brain tab from navigation tests

Steven Enamakel6b727f5d7557
diff --git a/app/src/AppRoutes.guards.test.tsx b/app/src/AppRoutes.guards.test.tsx
index 468c5b122d..0d4330fba8 100644
--- a/app/src/AppRoutes.guards.test.tsx
+++ b/app/src/AppRoutes.guards.test.tsx
@@ -182,7 +182,7 @@ describe('AppRoutes — the whole route table stays classified', () => {
'/onboarding/*': 'protected',
'/home': 'redirect',
'/human': 'protected',
- '/brain': 'protected',
+ '/brain': 'redirect',
'/flows': 'protected',
'/flows/draft': 'protected',
'/flows/:id': 'protected',
diff --git a/app/src/components/layout/shell/CollapsedNavRail.test.tsx b/app/src/components/layout/shell/CollapsedNavRail.test.tsx
index 95be1dbe8f..cf6ba41004 100644
--- a/app/src/components/layout/shell/CollapsedNavRail.test.tsx
+++ b/app/src/components/layout/shell/CollapsedNavRail.test.tsx
@@ -19,7 +19,7 @@ describe('CollapsedNavRail', () => {
it('renders every primary destination with a visible label, without Home or Discord', () => {
renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });
- for (const key of ['nav.chat', 'nav.brain', 'nav.flows', 'nav.connections', 'nav.settings']) {
+ for (const key of ['nav.chat', 'nav.flows', 'nav.connections', 'nav.settings']) {
expect(screen.getByRole('button', { name: key })).toBeInTheDocument();
expect(screen.getByText(key)).toBeVisible();
}
@@ -42,15 +42,15 @@ describe('CollapsedNavRail', () => {
it('exposes every collapsed icon label as a tooltip fallback', () => {
renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });
- for (const key of ['nav.chat', 'nav.brain', 'nav.flows', 'nav.connections', 'nav.settings']) {
+ for (const key of ['nav.chat', 'nav.flows', 'nav.connections', 'nav.settings']) {
expect(screen.getByRole('button', { name: key })).toHaveAttribute('title', key);
}
});
it('navigates to a destination path when its icon is clicked', () => {
renderWithProviders(<CollapsedNavRail />, { initialEntries: ['/home'] });
- fireEvent.click(screen.getByRole('button', { name: 'nav.brain' }));
- expect(mockNavigate).toHaveBeenCalledWith('/brain');
+ fireEvent.click(screen.getByRole('button', { name: 'nav.flows' }));
+ expect(mockNavigate).toHaveBeenCalledWith('/flows');
});
it('marks the active destination with aria-current', () => {
diff --git a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
index 6f62f05dcb..a3c42ee9b1 100644
--- a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
+++ b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
@@ -606,7 +606,6 @@ describe('createWalkthroughSteps', () => {
'[data-walkthrough="skills-channels"]',
'[data-walkthrough="settings-menu"]',
'[data-walkthrough="tab-chat"]',
- '[data-walkthrough="tab-brain"]',
'[data-walkthrough="tab-connections"]',
'[data-walkthrough="chat-agent-panel"]',
]);
diff --git a/app/src/config/__tests__/navConfig.test.ts b/app/src/config/__tests__/navConfig.test.ts
index e8efdaf8b5..22a53902bc 100644
--- a/app/src/config/__tests__/navConfig.test.ts
+++ b/app/src/config/__tests__/navConfig.test.ts
@@ -3,22 +3,21 @@ import { describe, expect, it } from 'vitest';
import { AVATAR_MENU_ITEMS, NAV_TABS } from '../navConfig';
describe('NAV_TABS', () => {
- it('has exactly 4 entries', () => {
- expect(NAV_TABS).toHaveLength(4);
+ it('has exactly 3 entries', () => {
+ expect(NAV_TABS).toHaveLength(3);
});
it('has the correct ids in order', () => {
- expect(NAV_TABS.map(t => t.id)).toEqual(['chat', 'brain', 'flows', 'connections']);
+ expect(NAV_TABS.map(t => t.id)).toEqual(['chat', 'flows', 'connections']);
});
it('has the correct paths', () => {
- expect(NAV_TABS.map(t => t.path)).toEqual(['/chat', '/brain', '/flows', '/connections']);
+ expect(NAV_TABS.map(t => t.path)).toEqual(['/chat', '/flows', '/connections']);
});
it('has the correct labelKeys', () => {
expect(NAV_TABS.map(t => t.labelKey)).toEqual([
'nav.chat',
- 'nav.brain',
'nav.flows',
'nav.connections',
]);
@@ -27,7 +26,6 @@ describe('NAV_TABS', () => {
it('has the correct walkthroughAttrs', () => {
expect(NAV_TABS.map(t => t.walkthroughAttr)).toEqual([
'tab-chat',
- 'tab-brain',
'tab-flows',
'tab-connections',
]);