File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 3030 make tests | tee output.log
3131 if grep -q -e "Error: A snapshot doesn't exist at" -e "Screenshot comparison failed" output.log; then
3232 echo "Playwright tests failed due to a snapshot issue."
33- echo "SNAPSHOT_DIFFERENCES=true" >> $GITHUB_ENV
3433 exit 1
3534 elif grep -q "failed" output.log; then
3635 echo "Playwright tests failed due to a non-snapshot issue."
4544 retention-days : 3
4645 - name : Comment on PR with Playwright report
4746 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
48- if : ${{ failure() && env.SNAPSHOT_DIFFERENCES == 'true' }}
47+ if : ${{ failure() }}
4948 with :
5049 script : |
5150 const body = `### <span aria-hidden="true">❌</span> Playwright visual snapshot differences were detected.
You can’t perform that action at this time.
0 commit comments