diff --git a/.github/workflows/test-ui.yaml b/.github/workflows/test-ui.yaml index ae6552bfa..7920e56d8 100644 --- a/.github/workflows/test-ui.yaml +++ b/.github/workflows/test-ui.yaml @@ -229,10 +229,11 @@ jobs: - name: Run Playwright tests (${{ matrix.browser }}) id: playwright - run: npx playwright test --project=${{ matrix.browser }} --reporter=html --reporter=json + run: | + npx playwright test --project=${{ matrix.browser }} \ + --reporter=html \ + --reporter='json:{"outputFile":"playwright-report/report.json"}' working-directory: ComfyUI_frontend - env: - PLAYWRIGHT_JSON_OUTPUT_NAME: playwright-report/report.json - uses: actions/upload-artifact@v4 if: always() @@ -278,12 +279,10 @@ jobs: - name: Merge into HTML Report run: | - npx playwright merge-reports --reporter html --reporter json ./all-blob-reports - # Move JSON report to the HTML report directory for easier access - [ -f "report.json" ] && mv report.json playwright-report/report.json + # Generate both HTML and JSON reports + npx playwright merge-reports --reporter html ./all-blob-reports + npx playwright merge-reports --reporter 'json:{"outputFile":"playwright-report/report.json"}' ./all-blob-reports working-directory: ComfyUI_frontend - env: - PLAYWRIGHT_JSON_OUTPUT_NAME: report.json - name: Upload HTML report uses: actions/upload-artifact@v4