Up[date snapshots and generation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user