The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(test): remove duplicate navigation smoothness spec
Steven Enamakel07ccb52e0a6c
diff --git a/app/test/e2e/specs/navigation-smoothness.spec.ts b/app/test/e2e/specs/navigation-smoothness.spec.tsindex 4b24657d8d..3b04040d16 100644--- a/app/test/e2e/specs/navigation-smoothness.spec.ts+++ b/app/test/e2e/specs/navigation-smoothness.spec.ts@@ -54,9 +54,9 @@ const ROUTES: RouteCheck[] = [markers: ['Notifications', 'Alerts', 'Notification', 'No notifications'],},{ hash: '/settings', markers: ['Settings', 'Account', 'Billing', 'Advanced'] },- // Brain page (the old /activity & /intelligence pages were retired; memory- // lives here now). Tabs: Graph, Memory, Sources, Sync.- { hash: '/connections?tab=brain', markers: ['Graph', 'Memory', 'Sources'] },+ // Memory page (Connections → Memory, v2). Chips: Engine, Ask, Learnings,+ // Conversations, Documents, Context.+ { hash: '/connections?tab=brain', markers: ['Engine', 'Ask', 'Documents', 'Memory'] },{hash: '/home',markers: [diff --git a/app/test/e2e/specs/navigation.spec.ts b/app/test/e2e/specs/navigation.spec.tsindex c11b4279a0..9e10664c35 100644--- a/app/test/e2e/specs/navigation.spec.ts+++ b/app/test/e2e/specs/navigation.spec.ts@@ -14,7 +14,7 @@* the BottomTabBar / router silently no-ops.*/import { waitForApp, waitForAppReady } from '../helpers/app-helpers';-import { hasAppChrome } from '../helpers/element-helpers';+import { hasAppChrome, waitForTestId } from '../helpers/element-helpers';import { resetApp } from '../helpers/reset-app';import { navigateViaHash, waitForHomePage } from '../helpers/shared-flows';import { startMockServer, stopMockServer } from '../mock-server';@@ -26,6 +26,8 @@ interface Route {/** Min character count we expect in the rendered React tree after the* route mounts. A truly-blank screen surfaces as <100 chars of text. */minChars?: number;+ /** A `data-testid` that must be in the DOM once the route has mounted. */+ readyTestId?: string;}// Phase 2/3/6 IA revamp:@@ -43,11 +45,12 @@ const ROUTES: Route[] = [{ hash: '/connections' },{ hash: '/settings' },{ hash: '/flows' },- // Orchestration folded under Brain; `/orchestration` now redirects to- // `/brain?tab=orchestration`, so we assert the Brain destination instead- // (the bare `/orchestration` hash would settle on the redirect target and- // fail the `^#/orchestration` match, same reasoning as /home above).- { hash: '/connections?tab=brain' },+ // Memory (v2) is a sub-page of Connections; the retired `/brain` route+ // redirects here, so assert the canonical destination (a redirecting hash+ // would settle on its target and fail the `^#<hash>` match, same reasoning+ // as /home above). The Memory page mounts with its chip bar whatever the+ // engine state, so its root testid is a stable ready signal.+ { hash: '/connections?tab=brain', readyTestId: 'memory-page' },];async function rootTextLength(): Promise<number> {@@ -90,7 +93,13 @@ describe('Navigation', () => {await waitForAppReady(10_000);const hash = await browser.execute(() => window.location.hash);- expect(hash).toMatch(new RegExp(`^#${route.hash}`));+ // Escape the hash: `?` in `/connections?tab=brain` is a regex quantifier.+ const escaped = route.hash.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');+ expect(hash).toMatch(new RegExp(`^#${escaped}`));++ if (route.readyTestId) {+ await waitForTestId(route.readyTestId, 15_000);+ }const chars = await rootTextLength();expect(chars).toBeGreaterThan(route.minChars ?? 50);