Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(ci): reenable json reports for BiDi tests (#42825)

Holger Benl1996640ff2f4
diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml
index 17613d26a3..9a951207b5 100644
--- a/.github/workflows/tests_bidi.yml
+++ b/.github/workflows/tests_bidi.yml
@@ -74,6 +74,14 @@ jobs:
path: ${{ runner.temp }}/${{ matrix.channel }}.csv
retention-days: 7
+ - name: Upload json report to GitHub
+ if: ${{ !cancelled() }}
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: json-report-${{ matrix.channel }}
+ path: test-results/report.json
+ retention-days: 7
+
- name: Upload parquet report
if: ${{ !cancelled() }}
uses: ./.github/actions/upload-parquet-report
diff --git a/tests/bidi/playwright.config.ts b/tests/bidi/playwright.config.ts
index 83996f2bde..438bbd2c6a 100644
--- a/tests/bidi/playwright.config.ts
+++ b/tests/bidi/playwright.config.ts
@@ -44,6 +44,7 @@ const testDir = path.join(__dirname, '..');
const reporters = () => {
const result: ReporterDescription[] = process.env.CI ? [
hasDebugOutput ? ['list'] : ['dot'],
+ ['json', { outputFile: path.join(outputDir, 'report.json') }],
['blob'],
['../config/parquetReporter.ts'],
['./csvReporter', { outputFile: path.join(outputDir, 'report.csv'), markdownFile: path.join(outputDir, 'report.md') }],