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

fix(e2e): read SCREENPIPE_FOCUS_PORT env instead of hardcoding 11435

Louis Beaumont6a7628a48ae5
diff --git a/apps/screenpipe-app-tauri/e2e/specs/focus-server.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/focus-server.spec.ts
index 15f67bbf6..f34bff070 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/focus-server.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/focus-server.spec.ts
@@ -21,7 +21,7 @@
import { openHomeWindow, waitForAppReady, t } from "../helpers/test-utils.js";
import { closeWindow } from "../helpers/tauri.js";
-const FOCUS_SERVER_PORT = 11435;
+const FOCUS_SERVER_PORT = Number(process.env.SCREENPIPE_FOCUS_PORT ?? "11436");
const MAIN_LABELS = ["main", "main-window"] as const;
type MainLabel = (typeof MAIN_LABELS)[number];
diff --git a/apps/screenpipe-app-tauri/e2e/specs/notification-viewer-link.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/notification-viewer-link.spec.ts
index c0692fd42..0cb5c82d2 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/notification-viewer-link.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/notification-viewer-link.spec.ts
@@ -24,8 +24,9 @@ import { existsSync } from "node:fs";
import { saveScreenshot } from "../helpers/screenshot-utils.js";
import { openHomeWindow, t, waitForAppReady } from "../helpers/test-utils.js";
-const NOTIFY_URL = "http://127.0.0.1:11435/notify";
-const NOTIFICATIONS_URL = "http://127.0.0.1:11435/notifications";
+const FOCUS_PORT = Number(process.env.SCREENPIPE_FOCUS_PORT ?? "11436");
+const NOTIFY_URL = `http://127.0.0.1:${FOCUS_PORT}/notify`;
+const NOTIFICATIONS_URL = `http://127.0.0.1:${FOCUS_PORT}/notifications`;
interface NotificationHistoryEntry {
id: string;