Skip to content

Commit

Permalink
screenshots to understand CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Jan 8, 2025
1 parent a34c19e commit 8407a8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cypress-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ jobs:
wait-on: 'http://localhost:3333'
# custom test command to run
command: yarn test:ci
# after the test run completes store videos and any screenshots
- uses: actions/upload-artifact@v4
# add the line below to store screenshots only on failures
if: failure()
with:
name: cypress-screenshots
path: path: packages/ui/cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
# store the screenshots if the tests fail
# - name: Store screenshots
# uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 8407a8b

Please sign in to comment.