Allow configuring Playwright Chrome path

This commit is contained in:
beatz174-bit
2025-11-23 14:11:52 +10:00
parent e2499c0e19
commit 0f782d8fb3
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -20,7 +20,10 @@
"type": "node-terminal",
"request": "launch",
"command": "npm run test:e2e",
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"env": {
"CHROME_PATH": "<path to flatpak chrome wrapper>"
}
}
]
}
+4 -1
View File
@@ -12,7 +12,10 @@ export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
use: {
...devices['Desktop Chrome'],
executablePath: process.env.CHROME_PATH,
},
},
],
webServer: {