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): drive shortcut reminder controls on Windows

Louis Beaumontabe180412bd5
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.md
index 55b7c9642..565680b64 100644
--- a/apps/screenpipe-app-tauri/e2e/README.md
+++ b/apps/screenpipe-app-tauri/e2e/README.md
@@ -165,7 +165,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, opens the Shortcuts editor and cancels an open-search hotkey capture, toggles the Display shortcut-reminder overlay and verifies the visible reminder controls, opens notification history from the bell and manages notification preferences, 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, toggles the Display shortcut-reminder overlay, clicks its visible Search and Hide controls, opens notification history from the bell and manages notification preferences, 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.ts
index 758978c6f..6062e255f 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
@@ -277,6 +277,24 @@ async function expectShortcutReminderVisible(expected: boolean, timeoutMs = t(15
);
}
+async function waitForSearchInputFocus(timeoutMs = t(15_000)): Promise<void> {
+ const searchInput = await $(SEARCH_INPUT_SELECTOR);
+ await searchInput.waitForDisplayed({ timeout: timeoutMs });
+
+ await browser.waitUntil(
+ async () =>
+ (await browser.execute(() => {
+ const active = document.activeElement;
+ return active instanceof HTMLInputElement && active.placeholder.toLowerCase().includes("search memory");
+ })) as boolean,
+ {
+ timeout: timeoutMs,
+ interval: 250,
+ timeoutMsg: "Search input did not receive focus after opening from the shortcut reminder",
+ },
+ );
+}
+
async function expectCurrentSettingsSection(section: string, timeoutMs = t(15_000)): Promise<void> {
await browser.waitUntil(
async () => {
@@ -564,6 +582,38 @@ describe("Windows user journey", function () {
const reminderScreenshot = await saveScreenshot("windows-user-journey-shortcut-reminder");
expect(existsSync(reminderScreenshot)).toBe(true);
+
+ const openSearchButton = await $('button[title="Open search"]');
+ await openSearchButton.waitForDisplayed({ timeout: t(10_000) });
+ await openSearchButton.click();
+
+ await waitForWindowHandle("search", t(20_000));
+ await browser.switchToWindow("search");
+ await waitForSearchInputFocus(t(20_000));
+
+ const searchFromReminderScreenshot = await saveScreenshot("windows-user-journey-shortcut-reminder-search");
+ expect(existsSync(searchFromReminderScreenshot)).toBe(true);
+
+ if ((await browser.getWindowHandles()).includes("home")) {
+ await browser.switchToWindow("home").catch(() => {});
+ await closeWindow({ Search: { query: null } }).catch(() => {});
+ }
+
+ await browser.switchToWindow("shortcut-reminder");
+ const hideReminderButton = await $('button[title="Hide shortcut reminder"]');
+ await hideReminderButton.waitForDisplayed({ timeout: t(10_000) });
+ await hideReminderButton.click();
+
+ await expectShortcutReminderVisible(false, t(20_000));
+ await browser.switchToWindow("home");
+ await browser.waitUntil(
+ async () => !(await switchIsChecked(shortcutReminderSelector)),
+ {
+ timeout: t(15_000),
+ interval: 250,
+ timeoutMsg: "Display settings did not reflect hiding the shortcut reminder from the overlay",
+ },
+ );
} finally {
if ((await browser.getWindowHandles()).includes("home")) {
await browser.switchToWindow("home").catch(() => {});