Files
yuez b02f4e9070 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.
2026-10-21 20:42:34 +08:00

24 lines
481 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"