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): open timeline from Windows shortcut reminder

Louis Beaumontc9abcbd9a7a8
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.md
index d231c77fb..fe867c6aa 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, clicks its visible Search, Chat, and Hide controls, opens notification history from the bell, manages notification preferences, dismisses a notification from the visible bell 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, toggles the Display shortcut-reminder overlay, clicks its visible Search, Chat, Timeline, and Hide controls, opens notification history from the bell, manages notification preferences, dismisses a notification from the visible bell 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.ts
index 91f39bf8c..f3f66ee15 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
@@ -20,6 +20,8 @@ const SEARCH_QUERY = "screenpipe windows ux journey";
const SEARCH_INPUT_SELECTOR = 'input[placeholder*="search memory"]';
const APP_SERVER_PORT = Number(process.env.SCREENPIPE_FOCUS_PORT ?? "11436");
const APP_SERVER_BASE_URL = `http://127.0.0.1:${APP_SERVER_PORT}`;
+const MAIN_WINDOW_LABELS = ["main", "main-window"] as const;
+type MainWindowLabel = (typeof MAIN_WINDOW_LABELS)[number];
async function appServerRequest(
path: string,
@@ -303,6 +305,20 @@ async function expectChatComposerAcceptsTyping(message: string): Promise<void> {
expect(await composer.getValue()).toContain(message);
}
+async function waitForAnyMainWindowHandle(timeoutMs = t(20_000)): Promise<MainWindowLabel> {
+ const deadline = Date.now() + timeoutMs;
+
+ while (Date.now() < deadline) {
+ const handles = await browser.getWindowHandles();
+ for (const label of MAIN_WINDOW_LABELS) {
+ if (handles.includes(label)) return label;
+ }
+ await browser.pause(t(250));
+ }
+
+ throw new Error(`Main window handle did not appear (${MAIN_WINDOW_LABELS.join(", ")})`);
+}
+
async function expectCurrentSettingsSection(section: string, timeoutMs = t(15_000)): Promise<void> {
await browser.waitUntil(
async () => {
@@ -625,6 +641,23 @@ describe("Windows user journey", function () {
await closeWindow("Chat").catch(() => {});
}
+ await browser.switchToWindow("shortcut-reminder");
+ const openTimelineButton = await $('button[title="Open timeline"]');
+ await openTimelineButton.waitForDisplayed({ timeout: t(10_000) });
+ await openTimelineButton.click();
+
+ const mainWindowLabel = await waitForAnyMainWindowHandle(t(20_000));
+ await browser.switchToWindow(mainWindowLabel);
+ await waitForWindowUrl("/overlay", undefined, t(20_000));
+
+ const timelineFromReminderScreenshot = await saveScreenshot("windows-user-journey-shortcut-reminder-timeline");
+ expect(existsSync(timelineFromReminderScreenshot)).toBe(true);
+
+ if ((await browser.getWindowHandles()).includes("home")) {
+ await browser.switchToWindow("home").catch(() => {});
+ await closeWindow("Main").catch(() => {});
+ }
+
await browser.switchToWindow("shortcut-reminder");
const hideReminderButton = await $('button[title="Hide shortcut reminder"]');
await hideReminderButton.waitForDisplayed({ timeout: t(10_000) });