Up[date snapshots and generation
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-01 15:15:18 -03:00
parent 0266d472d9
commit 3a940e9da1
6 changed files with 68 additions and 46 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Regenerate Playwright visual regression snapshots.
# - When Docker is available: runs in the same image as CI (Playwright Noble) for a CI-accurate baseline.
# - When Docker is not available (e.g. devcontainer): runs Playwright in the current environment;
# the Linux snapshot may still differ slightly from CI — if CI fails, run this script on the host with Docker.
# - In the devcontainer (Playwright Noble): same image as CI, snapshot matches CI.
# - When Docker is available on host: runs in the same image as CI for a CI-accurate baseline.
# - Otherwise: run the update-e2e-snapshots workflow in Woodpecker (manual pipeline).
set -e
SCRIPT_DIR="${BASH_SOURCE%/*}"
@@ -28,8 +28,7 @@ if command -v docker >/dev/null 2>&1; then
pnpm exec playwright test --update-snapshots
'
else
echo "Docker not found — updating snapshots in the current environment."
echo "If CI later fails with a snapshot mismatch, run this script on a host with Docker for a CI-accurate baseline."
echo "Updating snapshots in the current environment (matches CI when using the devcontainer)."
echo ""
# Unset CI so Playwright config starts the preview server