fix: update Playwright coverage configuration and base URL for consistency across scripts

This commit is contained in:
GitHub Actions
2026-02-15 05:43:57 +00:00
parent 673efbd195
commit c8a6542c06
6 changed files with 19 additions and 18 deletions

View File

@@ -238,6 +238,7 @@ main() {
# IMPORTANT: Use Vite URL (3000) for coverage, not Docker (8080)
export PLAYWRIGHT_HTML_OPEN="${PLAYWRIGHT_HTML_OPEN:-never}"
export PLAYWRIGHT_SKIP_SECURITY_DEPS="${PLAYWRIGHT_SKIP_SECURITY_DEPS:-1}"
export PLAYWRIGHT_COVERAGE="1"
export PLAYWRIGHT_BASE_URL="${PLAYWRIGHT_BASE_URL:-http://localhost:${VITE_PORT}}"
# Log configuration

View File

@@ -197,7 +197,7 @@ main() {
export PLAYWRIGHT_SKIP_SECURITY_DEPS="${PLAYWRIGHT_SKIP_SECURITY_DEPS:-1}"
# Debug runs should not start the Vite dev server by default
export PLAYWRIGHT_COVERAGE="${PLAYWRIGHT_COVERAGE:-0}"
set_default_env "PLAYWRIGHT_BASE_URL" "http://localhost:8080"
set_default_env "PLAYWRIGHT_BASE_URL" "http://127.0.0.1:8080"
# Enable Inspector if requested
if [[ "${INSPECTOR}" == "true" ]]; then

View File

@@ -150,7 +150,7 @@ main() {
export PLAYWRIGHT_SKIP_SECURITY_DEPS="${PLAYWRIGHT_SKIP_SECURITY_DEPS:-1}"
# Ensure non-coverage runs do NOT start the Vite dev server (use Docker in CI/local non-coverage)
export PLAYWRIGHT_COVERAGE="${PLAYWRIGHT_COVERAGE:-0}"
set_default_env "PLAYWRIGHT_BASE_URL" "http://localhost:8080"
set_default_env "PLAYWRIGHT_BASE_URL" "http://127.0.0.1:8080"
# Log configuration
log_step "CONFIG" "Test configuration"