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
fix(e2e): update shared flow helper to handle missing test data
Steven Enamakelb8aa36f6a896
diff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.tsindex b2a7ec72f7..09ebbbf2f2 100644--- a/app/test/e2e/helpers/shared-flows.ts+++ b/app/test/e2e/helpers/shared-flows.ts@@ -146,7 +146,6 @@ async function clickFirstMatch(candidates, timeout = 5_000) {const HASH_TO_SIDEBAR_LABEL = {'/chat': 'Chat','/human': 'Human',- '/brain': 'Connections','/connections': 'Connections','/settings': 'Settings',};@@ -182,6 +181,15 @@ const HASH_REDIRECTS = {'/settings/llm': '/connections?tab=llm','/settings/voice': '/connections?tab=voice','/settings/search': '/connections?tab=search',+ // Memory v2: the retired Brain page and the v1 memory settings panels all+ // land on a chip of the Memory page (Connections → Memory, `?brain=`).+ '/brain': '/connections?tab=brain',+ '/settings/intelligence': '/connections?tab=brain',+ '/settings/memory-engine': '/connections?tab=brain&brain=engine',+ '/settings/memory-data': '/connections?tab=brain&brain=documents',+ '/settings/memory-sync': '/connections?tab=brain&brain=documents',+ '/settings/memory-debug': '/connections?tab=brain&brain=ask',+ '/settings/tasks': '/connections?tab=brain&brain=ask',};/** Resolve a requested hash to where the router actually settles. */@@ -210,7 +218,10 @@ function routeReadySelector(hash) {'/settings/privacy': '[data-testid="settings-privacy-panel"]','/settings/migration': '[data-testid="migration-form"]','/settings/voice': '[data-testid="voice-providers-section"]',- '/settings/memory-data': '[data-testid="memory-workspace"]',+ '/connections?tab=brain': '[data-testid="memory-page"]',+ '/connections?tab=brain&brain=engine': '[data-testid="memory-page"]',+ '/connections?tab=brain&brain=documents': '[data-testid="memory-page"]',+ '/connections?tab=brain&brain=ask': '[data-testid="memory-page"]','/settings/recovery-phrase': '[data-testid="recovery-phrase-panel"]',};return selectors[path] || null;@@ -234,7 +245,7 @@ async function waitForHashRouteReady(hash, options = {}) {// readyState + the resolved hash (and a route-ready selector when known).// A stable but unrelated hash is not evidence of navigation: accepting one// masks failed route changes (for example, a test continuing on /chat after- // asking to open /brain?tab=sources).+ // asking to open /connections?tab=brain).await browser.waitUntil(async () => {const res = await browser.execute(@@ -253,7 +264,8 @@ async function waitForHashRouteReady(hash, options = {}) {if (res.loading) return false;// A known route-ready selector being present is a definitive signal the// target panel rendered — accept it regardless of the hash, since routes- // can redirect to a different hash (e.g. /settings/memory-data → /brain).+ // can redirect to a different hash (e.g. /settings/memory-data →+ // /connections?tab=brain&brain=documents).if (res.hasSelector) return true;// Otherwise require the resolved target hash. Redirects are accounted// for above when computing `expected`.