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
test(navigation): add readyTestId to route entries
Steven Enamakel9f8cdd1b802e
diff --git a/app/test/playwright/specs/navigation.spec.ts b/app/test/playwright/specs/navigation.spec.tsindex 33dd98f14f..d72054c4be 100644--- a/app/test/playwright/specs/navigation.spec.ts+++ b/app/test/playwright/specs/navigation.spec.ts@@ -6,6 +6,7 @@ interface RouteEntry {route: string;/** Expected hash after any redirect. Defaults to the route itself. */expectedHash?: string;+ readyTestId?: string;}// Phase 2/3/6 IA revamp routes.@@ -20,6 +21,9 @@ const ROUTES: RouteEntry[] = [{ route: '/human' }, // first-class route (dedicated mascot stage){ route: '/chat' },{ route: '/connections' },+ { route: '/flows' },+ { route: '/connections?tab=brain', readyTestId: 'memory-page' },+ { route: '/brain', expectedHash: '/connections?tab=brain', readyTestId: 'memory-page' },{ route: '/skills', expectedHash: '/connections' }, // back-compat redirect{ route: '/activity', expectedHash: '/settings/account' }, // back-compat redirect{ route: '/intelligence', expectedHash: '/settings/account' }, // back-compat redirect@@ -41,9 +45,14 @@ test.describe('Navigation', () => {await waitForAppReady(page);// After redirects the hash should begin with the final landing path.+ const escapedLanding = landing.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');await expect.poll(async () => page.evaluate(() => window.location.hash))- .toMatch(new RegExp(`^#${landing.replace('/', '\\/')}`));+ .toMatch(new RegExp(`^#${escapedLanding}`));+ if (expectedHash?.includes('?')) {+ await expect.poll(() => page.evaluate(() => window.location.hash)).toBe(`#${expectedHash}`);+ }+ if (readyTestId) await expect(page.getByTestId(readyTestId)).toBeVisible();await expect.poll(async () => {const text = await page.locator('#root').innerText();