mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test: debug playwright ci with screenshots (#57396)
This commit is contained in:
@@ -157,10 +157,16 @@ jobs:
|
||||
pnpm run start-ci &
|
||||
sleep 10
|
||||
npx playwright test --project="${{ matrix.browsers }}" --grep-invert 'third-party-donation.spec.ts'
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: playwright-report-${{ matrix.browsers }}
|
||||
path: playwright/reporter
|
||||
retention-days: 30
|
||||
- name: Upload screenshots
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: screenshots-${{ matrix.browsers }}
|
||||
path: playwright/test-results
|
||||
retention-days: 14
|
||||
|
||||
Reference in New Issue
Block a user