Files
OpenHands/.github
Rohit Malhotraandopenhands caef236c10 mock-llm e2e: use bin/agent-canvas.mjs (production binary path) (#906)
Switch mock-LLM E2E tests from npm run dev:minimal (Vite dev server +
agent-server only) to the full agent-canvas binary entry point — the same
path real users exercise when they run `npx @openhands/agent-canvas`.

This means tests now launch:
  - Pre-built static frontend (via static-server.mjs)
  - Agent-server via uvx
  - Automation backend via uvx
  - Ingress proxy unifying all routes on a single port

Changes:
- playwright.mock-llm.config.ts: replaced dev-safe.mjs webServer with
  bin/agent-canvas.mjs; single ingress port (18300) serves both the
  browser UI and proxied API calls; conditional build step for build/
- scripts/dev-with-automation.mjs: buildConfig now respects
  OH_CANVAS_SAFE_STATE_DIR from env (needed for test isolation)
- tests/e2e/mock-llm/utils/mock-llm-helpers.ts: BACKEND_URL now
  defaults to the ingress URL (API calls are proxied transparently)
- .github/workflows/mock-llm-e2e.yml: added npm run build:app step
  before tests (pre-build for CI caching)
- AGENTS.md: added Mock-LLM E2E Tests section documenting the new
  production-fidelity test architecture

Co-authored-by: openhands <openhands@all-hands.dev>
2026-05-28 19:17:59 +00:00
..