Skip to content

Commit e0901c7

Browse files
committed
feat: A
1 parent 8a5f6c8 commit e0901c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
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."
@@ -45,7 +44,7 @@ jobs:
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.

0 commit comments

Comments
 (0)