mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix(e2e): configure downloads path to prevent leaking to ~/Downloads
Adds explicit downloadsPath to Playwright config so test downloads go to .tmp/e2e-test-results/downloads/ instead of the system Downloads folder.
This commit is contained in:
parent
87bd32d22d
commit
f67bd288bf
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ export default defineConfig({
|
|||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
baseURL: process.env.E2E_BASE_URL || 'http://localhost:4242',
|
||||
|
||||
/* Configure downloads to go to test output directory, not ~/Downloads */
|
||||
downloadsPath: path.join(__dirname, '..', '.tmp', 'e2e-test-results', 'downloads'),
|
||||
|
||||
/* Collect trace on failure for better debugging. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'retain-on-failure',
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue