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 recording settings UX
Louis Beaumontc2c616ea5bb5
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.mdindex f8d9f4c8e..7188ea758 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; 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, verifying the app stays interactive across real user-facing surfaces |+| `windows-user-journey.spec.ts` | Windows-only. Drives Home search button -> floating Search input -> Timeline -> Home, and opens Recording settings to reveal Windows audio troubleshooting controls from the real UI || `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 ed3d352cf..6f51c1881 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@@ -98,6 +98,50 @@ async function expectTimelineShell(): Promise<void> {);}+async function getBodyTextLower(): Promise<string> {+ return ((await browser.execute(() => document.body.innerText || "")) as string).toLowerCase();+}++async function waitForBodyText(+ predicate: (bodyText: string) => boolean,+ timeoutMsg: string,+): Promise<void> {+ await browser.waitUntil(+ async () => predicate(await getBodyTextLower()),+ {+ timeout: t(20_000),+ interval: 500,+ timeoutMsg,+ },+ );+}++async function switchIsChecked(selector: string): Promise<boolean> {+ return (await browser.execute(+ (switchSelector: string) =>+ document.querySelector(switchSelector)?.getAttribute("aria-checked") === "true",+ selector,+ )) as boolean;+}++async function setSwitchChecked(selector: string, checked: boolean): Promise<void> {+ const toggle = await $(selector);+ await toggle.waitForDisplayed({ timeout: t(15_000) });++ if ((await switchIsChecked(selector)) !== checked) {+ await toggle.click();+ }++ await browser.waitUntil(+ async () => (await switchIsChecked(selector)) === checked,+ {+ timeout: t(10_000),+ interval: 250,+ timeoutMsg: `${selector} did not become ${checked ? "checked" : "unchecked"}`,+ },+ );+}+describe("Windows user journey", function () {this.timeout(180_000);@@ -156,4 +200,46 @@ describe("Windows user journey", function () {const restoredHomeSection = await $('[data-testid="section-home"]');await restoredHomeSection.waitForExist({ timeout: t(20_000) });});++ it("opens Recording settings and reveals Windows audio troubleshooting controls", async function () {+ if (!isWindows) this.skip();++ await openHomeWindow();++ const settingsNav = await $('[data-testid="nav-settings"]');+ await settingsNav.waitForDisplayed({ timeout: t(15_000) });+ await settingsNav.click();++ const recordingNav = await $('[data-testid="settings-nav-recording"]');+ await recordingNav.waitForDisplayed({ timeout: t(15_000) });+ await recordingNav.click();++ await waitForBodyText(+ (bodyText) =>+ bodyText.includes("screen and audio recording preferences") &&+ bodyText.includes("audio recording") &&+ bodyText.includes("screen recording"),+ "Recording settings did not show the core audio/screen controls",+ );++ const audioWasEnabled = await switchIsChecked("#disableAudio");+ try {+ await setSwitchChecked("#disableAudio", true);+ await waitForBodyText(+ (bodyText) =>+ bodyText.includes("auto-select audio devices") &&+ bodyText.includes("microphone echo cancellation") &&+ bodyText.includes("windows wasapi aec") &&+ bodyText.includes("apply & restart"),+ "Windows audio troubleshooting controls did not appear after enabling audio recording",+ );++ const recordingScreenshot = await saveScreenshot("windows-user-journey-recording-settings");+ expect(existsSync(recordingScreenshot)).toBe(true);+ } finally {+ if (!audioWasEnabled) {+ await setSwitchChecked("#disableAudio", false).catch(() => {});+ }+ }+ });});