You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e2e: Extract env vars and update setup to use them
- dded new module e2e/playwright/src/env.ts exporting BUT_SERVER_PORT,
;DESKTOP_PORT, and BUT_TESTING derived from process.env and project root.
- Updated e2e/playwright/playwright.config.ts to import BUT_SERVER_PORT and DESKTOP_PORT from ./src/env.ts and removed inline port defaults.
- Updated e2e/playwright/src/setup.ts to import env constants, use getButlerPort() based on BUT_SERVER_PORT, pass Butler data dir to spawned commands, and include BUT_TESTING in environment when launching Electron. Refactored runCommand to accept env overrides and updated spawnProcess calls accordingly; added helper getButlerDataDir.
- Ensures server readiness error messages use computed port variable.
0 commit comments