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: isolate restart-heavy auth e2e smoke

Louis Beaumont47b15c93a80f
diff --git a/apps/screenpipe-app-tauri/e2e/specs/privacy-api-auth-enforcement.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/privacy-api-auth-enforcement.spec.ts
index 54b0ca6b8..1e16e8c41 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/privacy-api-auth-enforcement.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/privacy-api-auth-enforcement.spec.ts
@@ -163,9 +163,9 @@ describe("Privacy: API auth enforcement", function () {
let key: string | null = null;
before(function () {
- // Apply & Restart can invalidate the Windows WebDriver session; macOS/Linux
- // still exercise the end-to-end backend enforcement path.
- if (process.platform === "win32") {
+ // Apply & Restart can invalidate desktop WebDriver sessions while the
+ // backend is cycling; Linux keeps the end-to-end enforcement coverage in CI.
+ if (process.platform !== "linux") {
this.skip();
}
});
diff --git a/apps/screenpipe-app-tauri/e2e/specs/tray-search.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/tray-search.spec.ts
index 87c0b7a40..54282b4b9 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/tray-search.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/tray-search.spec.ts
@@ -131,10 +131,20 @@ describe("Tray: Search window", function () {
const input = await $('input[placeholder*="search memory"]');
await input.waitForExist({ timeout: t(20_000) });
await waitForSearchInputFocus(t(20_000));
- await browser.waitUntil(async () => (await input.getValue()).includes("tray-e2e"), {
- timeout: t(15_000),
- interval: 250,
- timeoutMsg: "Search input did not seed from the ?q= tray query",
- });
+ await browser.waitUntil(
+ async () => {
+ try {
+ const currentInput = await $('input[placeholder*="search memory"]');
+ return (await currentInput.getValue()).includes("tray-e2e");
+ } catch {
+ return false;
+ }
+ },
+ {
+ timeout: t(15_000),
+ interval: 250,
+ timeoutMsg: "Search input did not seed from the ?q= tray query",
+ },
+ );
});
});