1
0
Files
kobopatch-webui/tests/e2e/run-screenshots.sh

18 lines
343 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Capture screenshots of every wizard step for visual review.
#
# Usage: ./run-screenshots.sh
#
# Output: screenshots/*.png (gitignored)
cd "$(dirname "$0")"
rm -rf screenshots
npx playwright test --config screenshots.config.js --reporter=list "$@"
echo ""
echo "Screenshots saved to tests/e2e/screenshots/"