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: {