🔧 Report flaky e2e tests in integration workflow

Enable Playwright's JSON reporter alongside `list` and publish a
summary of flaky tests to the job step summary. The JSON report is
kept as an artifact for 30 days so flakiness rates can be aggregated
over time.

CI already runs with `retries: 2`, so unstable tests have been passing
silently on retry. This only surfaces what the suite already absorbs;
no test behaviour changes.

The reporter in `frontend/scripts/test-e2e` becomes overridable via
`PLAYWRIGHT_REPORTER` so the local developer default stays untouched.
This commit is contained in:
David Barragán Merino committed 2026-08-12 12:52:30 +02:00
1 parent 985d219810
commit 732162e720
2 files changed
+33 -1

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
SCRIPT_DIR=$(dirname $0);
REPORTER=${PLAYWRIGHT_REPORTER:-list};
set -ex
$SCRIPT_DIR/setup;
pnpm run test:e2e -x --workers=1 --reporter=list "$@";
pnpm run test:e2e -x --workers=1 --reporter="$REPORTER" "$@";