18 lines
343 B
Bash
Executable File
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/"
|