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: make auth restart e2e smoke opt-in

Louis Beaumont5c67c331bc05
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 1e16e8c41..0fae5e952 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
@@ -26,6 +26,8 @@ import {
waitForLocalApi,
} from "../helpers/api-utils.js";
+const restartSmokeEnabled = process.env.SCREENPIPE_E2E_RESTART_SMOKE === "1";
+
type LocalApiConfig = Awaited<ReturnType<typeof getLocalApiConfig>>;
type HasGetAttribute = {
@@ -163,9 +165,9 @@ describe("Privacy: API auth enforcement", function () {
let key: string | null = null;
before(function () {
- // 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") {
+ // Apply & Restart mutates persisted auth config and cycles the backend.
+ // Keep this smoke opt-in until it runs in an isolated E2E job.
+ if (!restartSmokeEnabled) {
this.skip();
}
});