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:
yuez committed 2026-10-21 20:42:34 +08:00
1 parent 0ef019f58d
commit b02f4e9070
11 files changed
+7119

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# A0–A12: protocol/API/WS end-to-end against daemon + headless nvim + real pi.
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=lib.sh
source "$HERE/lib.sh"
e2e_init api
if [ "${E2E_SKIP_BUILD:-0}" != "1" ]; then e2e_build 0; fi
e2e_start_daemon
e2e_pair "E2E API"
set +e
node "$HERE/api-e2e.mjs"
rc=$?
set -e
if [ "$rc" -ne 0 ]; then
E2E_KEEP=1
e2e_log "API suite FAILED (exit $rc); artifacts: $E2E_ROOT"
fi
exit "$rc"