From 07faeb2460ef22c347d445b148f0f8dc7a2274ed Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Tue, 2 Sep 2025 22:04:22 -0600 Subject: [PATCH] Seed screenshots for E2E tests --- .gitea/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index c2d2618..a90fdb4 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -76,6 +76,10 @@ jobs: curl -fsS "http://$HOST:$PORT" >/dev/null echo "โœ… App is responding at http://$HOST:$PORT" + # Update snapshots first (for visual regression tests) + echo "๐Ÿ”„ Updating visual regression snapshots..." + PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/footer.responsive.spec.js tests/e2e/header.responsive.spec.js --project=${{ matrix.browser }} || true + # Run tests echo "๐Ÿงช Running E2E tests for ${{ matrix.browser }}..." BASE_URL="http://$HOST:$PORT" npx playwright test --project=${{ matrix.browser }} --reporter=list