2 Commits

Author SHA1 Message Date
a4616d0228 fix: resolve node correctly and wait for a real CDP endpoint
The smoke script passed a CommandInfo from Get-Command straight to
Test-Path, so Node was reported missing even when installed. Resolve the
executable path (Get-Command .Path, then the usual install directories) and
add a -Node override.

Wait for /json/list to answer instead of a TCP connect: WebView2 opens the
port briefly and dies under the sandbox, which made the script run the
driver against a dead endpoint. The summary now reports report.errors
instead of printing "OK: 0 checks".
2026-11-04 17:28:37 +08:00
0b97bcb6dc test: add a CDP-based pre-release UI smoke harness
The DSH sandbox blocks named pipes, so Chromium/WebView2 cannot start inside
it (window renders white, msedgewebview2 exits immediately; Edge headless
fails with a Mojo platform-channel access-denied fatal). UI verification
therefore moves to a script the user runs from a normal desktop shell.

- agent/tests/ui-smoke.ps1: launches the built exe with an isolated config
  and --remote-debugging-port, waits for the port, runs the driver, closes.
- agent/tests/ui-smoke.mjs: connects over CDP, snapshots the page (preview
  content, headings, fold toggles, highlighted code, window.ipc bridge),
  saves a screenshot and a JSON report for the agent to read.
- The driver was validated against a mock CDP server; the real end-to-end run
  needs a desktop shell (sandbox cannot host WebView2).
2026-11-04 15:15:24 +08:00