test(e2e): add the full web-console end-to-end gate
- API/WS driver A0–A12: auth/pairing, workspaces, instances, session create, real model streaming, abort, model/thinking, history paging, resync, multi-workspace isolation, subagents and a deterministic attention/diff trigger (attention-ext.ts). - Playwright driver B1–B14 + C1–C4: guard/pairing, workspaces, chat streaming, abort, panels, attention, status/devices, reconnect, deep links, i18n/theme, responsive overflow and console errors. - lib.sh isolates every run (runtime/data/state/agent dirs, ephemeral port, fresh workspaces) and reaps by /proc env; run-all.sh builds both sides. Document the plan and the 31/31 acceptance run.
This commit is contained in:
1 parent
0ef019f58d
commit
b02f4e9070
11 files changed
+7119
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
# B1–B14 + C1–C4: Playwright against the daemon-served production bundle.
|
||||
set -euo pipefail
|
||||
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
# shellcheck source=lib.sh
|
||||
source "$HERE/lib.sh"
|
||||
|
||||
e2e_init ui
|
||||
if [ "${E2E_SKIP_BUILD:-0}" != "1" ]; then e2e_build 1; fi
|
||||
e2e_start_daemon
|
||||
e2e_pair "E2E browser"
|
||||
|
||||
# The browser suite creates its own workspaces (through the API and through the
|
||||
# UI), so lib.sh only provides the paired daemon here.
|
||||
set +e
|
||||
node "$HERE/ui-e2e.mjs"
|
||||
rc=$?
|
||||
set -e
|
||||
|
||||
if [ "$rc" -ne 0 ]; then
|
||||
E2E_KEEP=1
|
||||
e2e_log "UI suite FAILED (exit $rc); artifacts: $E2E_ROOT"
|
||||
fi
|
||||
exit "$rc"
|
||||
Reference in new issue
Block a user