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:
Johannes Millan 2026-01-15 12:02:22 +01:00
parent 87bd32d22d
commit f67bd288bf

View file

@ -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',