YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(e2e): force-navigate to /home in openHomeWindow()
Louis Beaumont0bd0e2d760bf
diff --git a/apps/screenpipe-app-tauri/e2e/helpers/test-utils.ts b/apps/screenpipe-app-tauri/e2e/helpers/test-utils.tsindex 6efc18369..179e07c1a 100644--- a/apps/screenpipe-app-tauri/e2e/helpers/test-utils.ts+++ b/apps/screenpipe-app-tauri/e2e/helpers/test-utils.ts@@ -66,15 +66,30 @@ async function finishOpenHomeWindow(): Promise<void> {if (!homeHandle) throw new Error('Could not get home window handle');await browser.switchToWindow(homeHandle as string);- // Wait for sidebar brand to confirm hydration+ // The Home window persists across specs. A prior spec may have navigated it+ // to /settings (or elsewhere), and `show_window { Home: { page: null } }`+ // only focuses — it doesn't navigate. Force /home so every spec starts+ // from the same route and testids like nav-pipes / home-page are present.+ const currentPath = (await browser.execute(() => window.location.pathname)) as string;+ if (currentPath !== '/home') {+ await browser.execute(() => {+ window.location.href = '/home';+ });+ }++ // Wait for the Home page to actually render its root element — stronger+ // than a text match, which false-passes on /settings (sidebar brand is+ // present there too).await browser.waitUntil(async () => {- const text = await browser.execute(() => document.body?.innerText || '');- return text.includes('screenpipe');+ const present = (await browser.execute(+ () => !!document.querySelector('[data-testid="home-page"]')+ )) as boolean;+ return present;},- { timeout: t(15000), timeoutMsg: 'Home page did not hydrate' }+ { timeout: t(15000), timeoutMsg: 'Home page did not render [data-testid="home-page"]' });- await browser.pause(t(3000));+ await browser.pause(t(1500));}/**