Generate the HTML report without opening it in CI
Playwright's HTML reporter writes a self-contained report folder, normally playwright-report. Set open to never in automated runs so the job generates the report without trying to launch a browser.
- Keep Playwright's default playwright-report output folder or set outputFolder explicitly
- Retain traces, screenshots, and attachments when reviewers need failure evidence
- Make sure the report step runs even when tests fail
PLAYWRIGHT_HTML_OPEN=never npx playwright test --reporter=html