Snapshot management
This commit is contained in:
@@ -82,7 +82,16 @@ jobs:
|
||||
- run: npm run preview &
|
||||
env: { CI: true }
|
||||
- run: npx wait-on http://localhost:3000
|
||||
- run: npx playwright test tests/e2e/visual-regression.spec.ts
|
||||
|
||||
# Seed snapshots on main branch only (one-time setup)
|
||||
- name: Seed snapshots (main only)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
|
||||
env: { CI: true }
|
||||
|
||||
# Run visual regression tests
|
||||
- name: Run visual regression tests
|
||||
run: npx playwright test tests/e2e/visual-regression.spec.ts
|
||||
env: { CI: true }
|
||||
|
||||
- name: Package visual artifacts
|
||||
|
||||
Reference in New Issue
Block a user