Skip to content

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

test(e2e,home-window): bump post-click pause for Pipes (matches Timeline) — 500ms was racing the URL replaceState on slow runners

Louis Beaumont9e3766658960
diff --git a/apps/screenpipe-app-tauri/e2e/specs/home-window.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/home-window.spec.ts
index c10db5fd0..824c85b67 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/home-window.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/home-window.spec.ts
@@ -31,8 +31,17 @@ describe('Home window', () => {
const nav = (await navBtn.isExisting()) ? navBtn : navFallback;
await (await nav).waitForExist({ timeout: t(10000) });
await (await nav).click();
- // Timeline loads data; give it extra time
- await browser.pause(id === 'timeline' ? 3000 : 500);
+ // Pause AFTER click before reading URL / waiting for the section
+ // testid. Section-switch in the home page is async (fires a state
+ // update + URL replaceState), and on a slow runner the URL is not
+ // updated within the 500ms window we used for chrome-only
+ // sections. Pipes failed the URL assertion both on Linux (post-
+ // Mesa fix) AND on macOS once runner load went up. Both Pipes
+ // and Timeline mount remote-data fetches that delay the activeSection
+ // commit, so they share the longer pause.
+ const postClickPause =
+ id === 'timeline' || id === 'pipes' ? 3000 : 1500;
+ await browser.pause(postClickPause);
if (urlMatch) {
const url = await browser.getUrl();