Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use correct Playwright reporter syntax with comma-separated list
- Use --reporter=html,json syntax (comma-separated, not space)
- Move test-results.json to playwright-report/report.json after generation
- Remove incorrect PLAYWRIGHT_JSON_OUTPUT_NAME env variable
- Add || true to prevent failure if JSON file doesn't exist

The JSON reporter outputs to test-results.json by default when using
the comma-separated reporter list syntax.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
  • Loading branch information
snomiao and claude committed Sep 10, 2025
commit 0d74cfafa85a95561e2afa26f1536fb7deee92cd
15 changes: 7 additions & 8 deletions .github/workflows/test-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,json
# JSON report is saved to test-results.json by default, move it to the report directory
[ -f "test-results.json" ] && mv test-results.json playwright-report/report.json || true
working-directory: ComfyUI_frontend
env:
PLAYWRIGHT_JSON_OUTPUT_NAME: playwright-report/report.json

- uses: actions/upload-artifact@v4
if: always()
Expand Down Expand Up @@ -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
npx playwright merge-reports --reporter=html,json ./all-blob-reports
# JSON report is saved to test-results.json by default, move it to the report directory
[ -f "test-results.json" ] && mv test-results.json playwright-report/report.json || true
working-directory: ComfyUI_frontend
env:
PLAYWRIGHT_JSON_OUTPUT_NAME: report.json

- name: Upload HTML report
uses: actions/upload-artifact@v4
Expand Down
Loading