diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 82f00b07..367dff10 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -17,8 +17,12 @@ jobs: run: yarn playwright install --with-deps - name: Build for preview run: yarn build - - name: Run Playwright tests + - name: Run Playwright tests and update snapshots + if: contains(github.event.pull_request.labels.*.name, 'update snapshots') run: yarn test:e2e --update-snapshots + - name: Run Playwright tests + if: ${{ !contains(github.event.pull_request.labels.*.name, 'update snapshots') }} + run: yarn test:e2e - uses: actions/upload-artifact@v4 if: always() with: