23 lines
891 B
Bash
23 lines
891 B
Bash
#!/usr/bin/env bash
|
|
# Run full-system browser E2E against local dev (main tree serves :8080).
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
WT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
ASSETS="${UI_ACCEPTANCE_ASSETS_DIR:-$WT/.doc/test-reports/assets/2026-09-26-full-system-browser-e2e}"
|
|
mkdir -p "$ASSETS/screenshots"
|
|
cd "$WT/web"
|
|
set -a
|
|
# shellcheck disable=SC1091
|
|
source "$ROOT/.env"
|
|
set +a
|
|
export BASE_URL="${BASE_URL:-http://127.0.0.1:8080}"
|
|
export RUN_UI_ACCEPTANCE=1
|
|
export UI_ACCEPTANCE_ASSETS_DIR="$ASSETS"
|
|
export DISABLE_DEV_SEED_USERS=true
|
|
EXTRA=()
|
|
if [[ -n "${DISPLAY:-}" && "${HEADED:-}" == "1" ]]; then
|
|
EXTRA+=(--headed --slow-mo 100)
|
|
fi
|
|
echo "BASE_URL=$BASE_URL ASSETS=$ASSETS DISPLAY=${DISPLAY:-}(empty=headless)" | tee "$ASSETS/run-env.txt"
|
|
npx playwright test e2e/full-system-browser-e2e.spec.ts --reporter=list "${EXTRA[@]}" 2>&1 | tee "$ASSETS/playwright.log"
|