Files
landing/scripts/run-e2e.sh
mifi 72f0eab718
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
Script updates
2026-03-12 16:46:41 -03:00

22 lines
688 B
Bash
Executable File

#!/usr/bin/env bash
# Run Playwright e2e tests. Mirrors CI when possible.
# - In CI: run playwright test (pipeline already built and started serve).
# - Local with Docker: run tests in same Playwright image as CI (run-e2e-in-docker.sh).
# - Local without Docker (e.g. devcontainer): build and run playwright test (webServer in config).
set -e
if [ -n "$CI" ]; then
pnpm exec playwright test
exit 0
fi
if command -v docker >/dev/null 2>&1; then
bash "$(dirname "$0")/run-e2e-in-docker.sh"
pnpm install --config.confirmModulesPurge=false
exit 0
fi
# No Docker: run in current environment (e.g. devcontainer; same image as CI)
pnpm run build
pnpm exec playwright test