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(e2e): cover Windows manual meeting UX
Louis Beaumont80d69a878d54
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.mdindex ae68de405..bf9925a65 100644--- a/apps/screenpipe-app-tauri/e2e/README.md+++ b/apps/screenpipe-app-tauri/e2e/README.md@@ -162,7 +162,7 @@ Saves to `e2e/videos/`.| `timeline.spec.ts` | Navigates to Timeline; seeds a capture event; verifies at least one frame renders || `windows-core-recording.spec.ts` | Windows opt-in. Enables real vision recording and requires API auth, health/load, audio/device, vision, and search endpoints to stay responsive. In CI it uses `SCREENPIPE_E2E_SEED=onboarding,no-audio` so hosted runners exercise OCR without booting Whisper. When the runner exposes usable desktop frames, it also shows a foreground marker window and verifies OCR indexing/query search plus Timeline frame metadata, visible scrubber clicks, and arrow-key frame stepping; hosted runners without frames self-skip those capture-dependent assertions. || `windows-system-integration.spec.ts` | Windows-only. Verifies isolated data dir, native DLL/WebView2 runtime, display/DPI topology, localhost-only API binding, process health, Defender visibility, audio service/device health, concurrent local API load, focus churn, rapid Home-window routing, Home close/reopen backend survival, and absence of Windows crash-report events during the suite |-| `windows-user-journey.spec.ts` | Windows-only. Drives Home search button -> floating Search input -> Timeline -> Home, opens Recording settings to reveal Windows audio troubleshooting controls, previews the Storage retention safety confirmation without applying destructive cleanup, and verifies the Privacy API-auth restart warning without restarting |+| `windows-user-journey.spec.ts` | Windows-only. Drives Home search button -> floating Search input -> Timeline -> Home, opens Recording settings to reveal Windows audio troubleshooting controls, starts/stops a manual Meeting note through the visible UI, previews the Storage retention safety confirmation without applying destructive cleanup, and verifies the Privacy API-auth restart warning without restarting || `hd-recording-pipeline.spec.ts` | macOS opt-in. Starts an HD timer session via `/capture/hd/start`; asserts the controller goes active, a non-empty `hd_*.mp4` chunk is written, and OCR keeps indexing during HD (high-fps + indexing decouple, #3699/#3707) || `settings-sections.spec.ts` | Navigates General → Recording → AI → Speakers settings; verifies content and no crash || `audio-fallback.spec.ts` | macOS opt-in spec for the Screenpipe Cloud → local Whisper fallback alert and `/notify` history |diff --git a/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.tsindex ac0db0a06..2a24d892a 100644--- a/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts@@ -36,6 +36,29 @@ async function clickFirstDisplayed(selector: string, timeoutMs = t(15_000)): Prothrow new Error(`No displayed element found for ${selector}`);}+async function clickFirstButtonWithText(text: string, timeoutMs = t(15_000)): Promise<void> {+ const deadline = Date.now() + timeoutMs;+ const expected = text.toLowerCase();++ while (Date.now() < deadline) {+ const buttons = await $$("button");+ for (const button of buttons) {+ if (!(await button.isDisplayed().catch(() => false))) continue;++ const label = (await button.getText().catch(() => "")).trim().toLowerCase();+ if (label !== expected) continue;++ await button.scrollIntoView();+ await button.waitForEnabled({ timeout: t(5_000) });+ await button.click();+ return;+ }+ await browser.pause(t(250));+ }++ throw new Error(`No displayed button found with text "${text}"`);+}+async function waitForSearchResultsSurface(): Promise<void> {await browser.waitUntil(async () => {@@ -166,6 +189,20 @@ async function setDataStateSwitchChecked(selector: string, checked: boolean): Pr);}+async function stopMeetingIfVisible(): Promise<void> {+ const buttons = await $$("button");+ for (const button of buttons) {+ if (!(await button.isDisplayed().catch(() => false))) continue;++ const label = (await button.getText().catch(() => "")).trim().toLowerCase();+ if (label !== "stop") continue;++ await button.scrollIntoView();+ await button.click();+ return;+ }+}+describe("Windows user journey", function () {this.timeout(180_000);@@ -270,6 +307,51 @@ describe("Windows user journey", function () {}});+ it("starts and stops a manual meeting note from the visible Meetings UI", async function () {+ if (!isWindows) this.skip();++ await openHomeWindow();++ const meetingsNav = await $('[data-testid="nav-meetings"]');+ await meetingsNav.waitForDisplayed({ timeout: t(15_000) });+ await meetingsNav.click();++ await waitForBodyText(+ (bodyText) =>+ bodyText.includes("new meeting") ||+ bodyText.includes("no meetings yet") ||+ bodyText.includes("no past meetings yet"),+ "Meetings section did not show a startable meeting state",+ );++ try {+ await clickFirstButtonWithText("new meeting", t(20_000));++ await waitForBodyText(+ (bodyText) =>+ bodyText.includes("recording") &&+ bodyText.includes("ongoing") &&+ bodyText.includes("always get consent"),+ "Manual meeting did not enter the visible live recording note state",+ );++ const liveMeetingScreenshot = await saveScreenshot("windows-user-journey-meeting-live");+ expect(existsSync(liveMeetingScreenshot)).toBe(true);++ await clickFirstButtonWithText("stop", t(15_000));++ await waitForBodyText(+ (bodyText) => bodyText.includes("meeting saved"),+ "Manual meeting did not transition to the saved state after stop",+ );++ const savedMeetingScreenshot = await saveScreenshot("windows-user-journey-meeting-saved");+ expect(existsSync(savedMeetingScreenshot)).toBe(true);+ } finally {+ await stopMeetingIfVisible().catch(() => {});+ }+ });+it("opens Storage settings and previews local retention before cancelling", async function () {if (!isWindows) this.skip();