Add custom reporter to auto-report flaky Playwright tests (#12290)

This commit is contained in:
Michael Telatynski 2024-02-28 13:02:09 +00:00 committed by GitHub
parent 2402cd59bc
commit 86469bdd32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 89 additions and 1 deletions

View file

@ -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