Skip to content

e2e workflow: PR-summary 'View Detailed HTML Report' link points at the run page, not the artifact #1259

@cliffhall

Description

@cliffhall

Bug

In .github/workflows/e2e_tests.yml, the daun/playwright-report-summary@v3 step's custom-info includes:

📊 [View Detailed HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) (download artifacts)

That URL goes to the workflow run page, not the artifact download. A reader who clicks the link from the auto-posted PR comment still has to scroll to the bottom of the run page and click through "Artifacts" to actually grab the report. The "(download artifacts)" parenthetical hints at this, but the link itself doesn't take you there.

Suggested fix

actions/upload-artifact@v4 (and v7) exposes outputs.artifact-url, which links directly to the artifact zip download. Two small changes:

  1. Add an id to the upload step so its outputs are addressable:

    - name: Upload Playwright Report and Screenshots
      id: playwright-report
      uses: actions/upload-artifact@v7
      #
  2. Reference that output from custom-info:

    📊 [Download HTML Report + traces](${{ steps.playwright-report.outputs.artifact-url }})

That's it. Same UX, one fewer click, no new dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions