From f67bd288bfb77f667f13e879c1aa5e1bad37ab98 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Thu, 15 Jan 2026 12:02:22 +0100 Subject: [PATCH] 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. --- e2e/playwright.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts index 3389691da..5a473a920 100644 --- a/e2e/playwright.config.ts +++ b/e2e/playwright.config.ts @@ -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',