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): cover Windows shortcut reminder UX

Louis Beaumont9acda511a0bb
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.md
index 40023afa7..9da4f78bd 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, 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 |
+| `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, 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 daf5382eb..48dc81834 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
@@ -13,7 +13,7 @@
import { existsSync } from "node:fs";
import { saveScreenshot } from "../helpers/screenshot-utils.js";
import { openHomeWindow, waitForAppReady, t } from "../helpers/test-utils.js";
-import { closeWindow, waitForWindowHandle } from "../helpers/tauri.js";
+import { closeWindow, invokeOrThrow, waitForWindowHandle } from "../helpers/tauri.js";
const isWindows = process.platform === "win32";
const SEARCH_QUERY = "screenpipe windows ux journey";
@@ -212,6 +212,22 @@ async function shortcutRecorderForTitle(title: string) {
return recorder;
}
+async function expectShortcutReminderVisible(expected: boolean, timeoutMs = t(15_000)): Promise<void> {
+ await browser.waitUntil(
+ async () => {
+ if ((await browser.getWindowHandles()).includes("home")) {
+ await browser.switchToWindow("home").catch(() => {});
+ }
+ return (await invokeOrThrow<boolean>("e2e_shortcut_reminder_visible")) === expected;
+ },
+ {
+ timeout: timeoutMs,
+ interval: 250,
+ timeoutMsg: `Expected e2e_shortcut_reminder_visible=${expected}`,
+ },
+ );
+}
+
describe("Windows user journey", function () {
this.timeout(180_000);
@@ -415,6 +431,87 @@ describe("Windows user journey", function () {
expect(existsSync(shortcutsScreenshot)).toBe(true);
});
+ it("shows and hides the shortcut reminder overlay from Display settings", 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 displayNav = await $('[data-testid="settings-nav-display"]');
+ await displayNav.waitForDisplayed({ timeout: t(15_000) });
+ await displayNav.click();
+
+ await waitForBodyText(
+ (bodyText) =>
+ bodyText.includes("theme, windows, and overlay appearance") &&
+ bodyText.includes("show shortcut reminder") &&
+ bodyText.includes("overlay showing the screenpipe shortcut"),
+ "Display settings did not show the shortcut reminder controls",
+ );
+
+ const shortcutReminderSelector = "#shortcut-overlay";
+ const initiallyChecked = await switchIsChecked(shortcutReminderSelector);
+
+ try {
+ await setSwitchChecked(shortcutReminderSelector, false);
+ await expectShortcutReminderVisible(false, t(20_000));
+ await waitForBodyText(
+ (bodyText) => !bodyText.includes("overlay size"),
+ "Shortcut reminder size controls stayed visible after disabling the reminder",
+ );
+
+ await setSwitchChecked(shortcutReminderSelector, true);
+ await expectShortcutReminderVisible(true, t(20_000));
+ await waitForWindowHandle("shortcut-reminder", t(20_000));
+
+ await browser.switchToWindow("shortcut-reminder");
+ await browser.waitUntil(
+ async () => {
+ const state = (await browser.execute(() => ({
+ path: window.location.pathname,
+ hasTimelineButton: !!document.querySelector('button[title="Open timeline"]'),
+ hasChatButton: !!document.querySelector('button[title="Open chat"]'),
+ hasSearchButton: !!document.querySelector('button[title="Open search"]'),
+ hasHideButton: !!document.querySelector('button[title="Hide shortcut reminder"]'),
+ }))) as {
+ path: string;
+ hasTimelineButton: boolean;
+ hasChatButton: boolean;
+ hasSearchButton: boolean;
+ hasHideButton: boolean;
+ };
+
+ return (
+ state.path === "/shortcut-reminder" &&
+ state.hasTimelineButton &&
+ state.hasChatButton &&
+ state.hasSearchButton &&
+ state.hasHideButton
+ );
+ },
+ {
+ timeout: t(15_000),
+ interval: 250,
+ timeoutMsg: "Shortcut reminder window did not render its visible shortcut controls",
+ },
+ );
+
+ const reminderScreenshot = await saveScreenshot("windows-user-journey-shortcut-reminder");
+ expect(existsSync(reminderScreenshot)).toBe(true);
+ } finally {
+ if ((await browser.getWindowHandles()).includes("home")) {
+ await browser.switchToWindow("home").catch(() => {});
+ }
+ await setSwitchChecked(shortcutReminderSelector, initiallyChecked).catch(() => {});
+ if (!initiallyChecked) {
+ await expectShortcutReminderVisible(false, t(10_000)).catch(() => {});
+ }
+ }
+ });
+
it("opens Storage settings and previews local retention before cancelling", async function () {
if (!isWindows) this.skip();
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
index 94f846125..9469558d1 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -1018,6 +1018,23 @@ pub fn e2e_main_overlay_visible(app_handle: tauri::AppHandle) -> bool {
}
}
+/// E2E helper: report whether the shortcut reminder overlay is visibly shown.
+///
+/// The reminder window is hidden rather than destroyed, so WebDriver can keep a
+/// stale handle after users disable it from Settings > Display.
+#[tauri::command]
+#[specta::specta]
+pub fn e2e_shortcut_reminder_visible(app_handle: tauri::AppHandle) -> bool {
+ if !cfg!(feature = "e2e") {
+ return false;
+ }
+
+ app_handle
+ .get_webview_window("shortcut-reminder")
+ .and_then(|window| window.is_visible().ok())
+ .unwrap_or(false)
+}
+
#[derive(serde::Serialize, specta::Type)]
pub struct E2eAgentStreamResult {
pub emitted_deltas: u32,