From 0f782d8fb3e1f428a2f78b50c4105e798aee6cb7 Mon Sep 17 00:00:00 2001 From: beatz174-bit Date: Sun, 23 Nov 2025 14:11:52 +1000 Subject: [PATCH] Allow configuring Playwright Chrome path --- .vscode/launch.json | 5 ++++- playwright.config.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a6f0ff6..a2094e4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,7 +20,10 @@ "type": "node-terminal", "request": "launch", "command": "npm run test:e2e", - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", + "env": { + "CHROME_PATH": "" + } } ] } diff --git a/playwright.config.ts b/playwright.config.ts index 26093c9..e1e50d1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -12,7 +12,10 @@ export default defineConfig({ projects: [ { name: 'chromium', - use: { ...devices['Desktop Chrome'] }, + use: { + ...devices['Desktop Chrome'], + executablePath: process.env.CHROME_PATH, + }, }, ], webServer: {