feat: Playwright against deployed music-room (shell + optional unionid chain)

No Rust/Compose; GitHub Actions with MOICEN_E2E_UNIONID secret; dotenv .env.e2e; proxy install script.

Made-with: Cursor
This commit is contained in:
2026-04-26 17:01:52 +08:00
commit c5d054789e
10 changed files with 277 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# 经本机 HTTP 代理安装 npm 与 Playwright Chromium(默认 http://localhost:7890
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
PROXY_URL="${HTTP_PROXY:-${HTTPS_PROXY:-http://localhost:7890}}"
export HTTP_PROXY="$PROXY_URL"
export HTTPS_PROXY="$PROXY_URL"
export ALL_PROXY="${ALL_PROXY:-$PROXY_URL}"
export NO_PROXY="${NO_PROXY:-127.0.0.1,localhost}"
echo "Using proxy: $HTTP_PROXY"
cd "$ROOT"
npm ci
npx playwright install chromium --with-deps