diff --git a/.github/workflows/ci-tests-e2e.yaml b/.github/workflows/ci-tests-e2e.yaml index f4a7705745..0363ec47a4 100644 --- a/.github/workflows/ci-tests-e2e.yaml +++ b/.github/workflows/ci-tests-e2e.yaml @@ -124,12 +124,19 @@ jobs: - name: Run Playwright tests (${{ matrix.browser }}) id: playwright run: | - # Run tests with both HTML and JSON reporters + # Run tests with blob reporter first + pnpm exec playwright test --project=${{ matrix.browser }} --reporter=blob + env: + PLAYWRIGHT_BLOB_OUTPUT_DIR: ./blob-report + + - name: Generate HTML and JSON reports + if: always() + run: | + # Generate HTML report from blob + pnpm exec playwright merge-reports --reporter=html ./blob-report + # Generate JSON report separately with explicit output path PLAYWRIGHT_JSON_OUTPUT_NAME=playwright-report/report.json \ - pnpm exec playwright test --project=${{ matrix.browser }} \ - --reporter=list \ - --reporter=html \ - --reporter=json + pnpm exec playwright merge-reports --reporter=json ./blob-report - name: Upload Playwright report uses: actions/upload-artifact@v4