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
test: harden pipes page e2e navigation
Louis Beaumont3dc854b52bbb
diff --git a/apps/screenpipe-app-tauri/e2e/specs/pipes.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/pipes.spec.tsindex bb5146191..fd34dbc9f 100644--- a/apps/screenpipe-app-tauri/e2e/specs/pipes.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/pipes.spec.ts@@ -19,6 +19,45 @@ import { saveScreenshot } from '../helpers/screenshot-utils.js';let installedPipeName = '';let connectionPipeSlug = '';+async function waitForPipesPage(timeout = t(20_000)): Promise<void> {+ await browser.waitUntil(+ async () => {+ try {+ const myPipesTab = await $('[data-testid="tab-my-pipes"]');+ const discoverTab = await $('[data-testid="tab-discover"]');+ return (await myPipesTab.isExisting()) && (await discoverTab.isExisting());+ } catch {+ return false;+ }+ },+ {+ timeout,+ interval: 500,+ timeoutMsg: 'Pipes page tabs did not render',+ }+ );+}++async function openPipesPage(): Promise<void> {+ await openHomeWindow();++ const navPipes = await $('[data-testid="nav-pipes"]');+ await navPipes.waitForExist({ timeout: t(10_000) });+ await navPipes.waitForClickable({ timeout: t(10_000) });+ await navPipes.click();++ try {+ await waitForPipesPage(t(20_000));+ } catch {+ // A missed sidebar click should not cascade through this whole spec.+ // Navigate directly to the same route and wait for the Pipes shell.+ await browser.execute(() => {+ window.location.href = '/home?section=pipes';+ }).catch(() => {});+ await waitForPipesPage(t(20_000));+ }+}+async function confirmRiskGateIfPresent(): Promise<void> {const confirmBtn = await $('[data-testid="pipe-risk-install-confirm"]');if (!(await confirmBtn.isExisting())) return;@@ -73,16 +112,7 @@ describe('Pipes: discover → install → play', function () {// ─── Step 1: open Pipes section ───────────────────────────────────────────it('navigates to Pipes section', async () => {- const navPipes = await $('[data-testid="nav-pipes"]');- await navPipes.waitForExist({ timeout: t(10_000) });- await navPipes.click();-- // Pipes section fetches the remote store catalog from screenpi.pe- // on mount — observed 12-15s cold network round-trip on Linux- // runners under xvfb. The hard 10s here was reliably failing post- // GLX/Xvfb fix (78ba136b5). Use t() so CI gets the 2× multiplier.- const pipesSection = await $('[data-testid="section-pipes"]');- await pipesSection.waitForExist({ timeout: t(20_000) });+ await openPipesPage();const filepath = await saveScreenshot('pipes-section-loaded');expect(existsSync(filepath)).toBe(true);@@ -91,6 +121,8 @@ describe('Pipes: discover → install → play', function () {// ─── Step 2: switch to Discover tab (data-testid, not text) ──────────────it('switches to the Discover tab', async () => {+ await openPipesPage();+const discoverTab = await $('[data-testid="tab-discover"]');await discoverTab.waitForExist({ timeout: t(10_000) });await discoverTab.click();