Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Skip root-playwright wrapper check when @playwright/test isn't installed

rcourtman86f9159baeaf
diff --git a/scripts/tests/test-hot-dev-bg.sh b/scripts/tests/test-hot-dev-bg.sh
index 0d20b41132..eb5d0cdf44 100755
--- a/scripts/tests/test-hot-dev-bg.sh
+++ b/scripts/tests/test-hot-dev-bg.sh
@@ -834,6 +834,16 @@ test_root_playwright_wrapper_prefers_managed_browser_runtime() {
}
EOF
+ # The root playwright.config.ts imports @playwright/test, which is a
+ # devDependency of tests/integration/ — not installed in environments
+ # that haven't run the integration-tests setup (CI smoke job, fresh
+ # clones). Skip the wrapper-behavior assertion in those environments
+ # rather than blow up on a missing module.
+ if ! (cd "${ROOT_DIR}" && node -e "require.resolve('@playwright/test')") >/dev/null 2>&1; then
+ echo "[SKIP] root-playwright wrapper check (@playwright/test not installed)"
+ return 0
+ fi
+
output="$(
cd "${ROOT_DIR}" && \
PULSE_E2E_RUNTIME_STATE_PATH="${runtime_state}" \