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 shortcut editor UX
Louis Beaumontef3874dcd9d2
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.mdindex bf9925a65..40023afa7 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, 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 |+| `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, opens the Shortcuts editor and cancels an open-search hotkey capture, 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 2a24d892a..daf5382eb 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@@ -203,6 +203,15 @@ async function stopMeetingIfVisible(): Promise<void> {}}+async function shortcutRecorderForTitle(title: string) {+ const row = await $(`//h4[normalize-space(.)="${title}"]/ancestor::div[contains(@class, "justify-between")][1]`);+ await row.waitForDisplayed({ timeout: t(15_000) });++ const recorder = await row.$('.//button[not(@role="switch")]');+ await recorder.waitForDisplayed({ timeout: t(10_000) });+ return recorder;+}+describe("Windows user journey", function () {this.timeout(180_000);@@ -352,6 +361,60 @@ describe("Windows user journey", function () {}});+ it("opens Shortcuts settings and cancels editing the open-search hotkey", 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 shortcutsNav = await $('[data-testid="settings-nav-shortcuts"]');+ await shortcutsNav.waitForDisplayed({ timeout: t(15_000) });+ await shortcutsNav.click();++ await waitForBodyText(+ (bodyText) =>+ bodyText.includes("keyboard shortcuts and hotkeys") &&+ bodyText.includes("open search") &&+ bodyText.includes("open search when overlay is visible"),+ "Shortcuts settings did not show the open-search hotkey row",+ );++ const recorder = await shortcutRecorderForTitle("open search");+ const initialShortcutLabel = (await recorder.getText()).replace(/\s+/g, " ").trim();++ await recorder.scrollIntoView();+ await recorder.click();++ await waitForBodyText(+ (bodyText) => bodyText.includes("press keys..."),+ "Shortcut recorder did not enter the visible key-capture state",+ );++ const recordingScreenshot = await saveScreenshot("windows-user-journey-shortcut-recording");+ expect(existsSync(recordingScreenshot)).toBe(true);++ await browser.keys(["Escape"]);++ await browser.waitUntil(+ async () => !(await getBodyTextLower()).includes("press keys..."),+ {+ timeout: t(10_000),+ interval: 250,+ timeoutMsg: "Shortcut recorder stayed in key-capture state after Escape",+ },+ );++ const restoredRecorder = await shortcutRecorderForTitle("open search");+ const restoredShortcutLabel = (await restoredRecorder.getText()).replace(/\s+/g, " ").trim();+ expect(restoredShortcutLabel).toBe(initialShortcutLabel);++ const shortcutsScreenshot = await saveScreenshot("windows-user-journey-shortcuts");+ expect(existsSync(shortcutsScreenshot)).toBe(true);+ });+it("opens Storage settings and previews local retention before cancelling", async function () {if (!isWindows) this.skip();