Merge pull request #4347 from element-hq/toger5/CI-playwright-improvements

[CI Playwirght] Make reporter more verbose + fail faster
This commit is contained in:
Timo
2026-10-12 16:18:13 +02:00
committed by GitHub
+8 -1
View File
@@ -39,7 +39,14 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
// On CI, `list` prints a line per test as it finishes, which keeps the job
// log moving; `github` annotates failures on the PR; `html` is uploaded as
// an artifact and must never try to open a browser there.
reporter: process.env.CI
? [["list"], ["github"], ["html", { open: "never" }]]
: [["list"], ["html"]],
/* Stop a broken run early on CI instead of waiting out every retry. */
maxFailures: process.env.CI ? 5 : undefined,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */