Add custom reporter to auto-report flaky Playwright tests (#12290)
This commit is contained in:
parent
2402cd59bc
commit
86469bdd32
2 changed files with 89 additions and 1 deletions
5
.github/workflows/end-to-end-tests.yaml
vendored
5
.github/workflows/end-to-end-tests.yaml
vendored
|
@ -156,7 +156,10 @@ jobs:
|
|||
merge-multiple: true
|
||||
|
||||
- name: Merge into HTML Report
|
||||
run: yarn playwright merge-reports --reporter=html,github ./all-blob-reports
|
||||
run: yarn playwright merge-reports --reporter=html,github,./playwright/flaky-reporter.ts ./all-blob-reports
|
||||
env:
|
||||
# Only pass creds to the flaky-reporter on main branch runs
|
||||
GITHUB_TOKEN: ${{ github.event.workflow_run.head_branch == 'develop' && secrets.ELEMENT_BOT_TOKEN || '' }}
|
||||
|
||||
- name: Upload HTML report
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue