test: refactor to use toHaveScreenshot (#1314)

This commit is contained in:
Liam DeBeasi
2023-12-14 12:52:50 -08:00
committed by GitHub
parent 116d250255
commit c7f561ce41
8 changed files with 4 additions and 13 deletions
@@ -55,10 +55,8 @@ runs:
npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots
git add src/\*.png --force
mkdir updated-screenshots
echo 'made dir'
rsync -R --progress $(git diff --name-only --cached) updated-screenshots
echo 'copied images'
if [ -d updated-screenshots ]; then
if [ "$(ls -A updated-screenshots)" ]; then
echo "hasUpdatedScreenshots=$(echo 'true')" >> $GITHUB_OUTPUT
cd updated-screenshots
ls