agent-desktop/tests
Lahfir 30e80b90bc test: add E2E fixture app and dual-mode harness
Drives the release binary against a real SwiftUI/AppKit fixture and verifies
every effect by independent before/after observation — never the command's own
ok:true — so a command that reports success without an effect is caught. This is
the layer mock-adapter unit tests cannot cover: it exercises the contract
against the real macOS Accessibility API.

- AgentDeskFixture.swift exposes a fixed, diverse AX surface (native AppKit
  slider/stepper, gesture-only and ambiguous controls, a sheet, a press-toggled
  disclosure, async-appearing elements, a drag canvas). It is never tuned to
  make a command pass; a failure is a finding about the CLI or the harness.
- run.sh drives every ref-action command in BOTH headless and --headed mode with
  mode-specific target values, plus the double-click discriminator (headless
  fails closed with POLICY_DENIED, --headed completes) that proves the two modes
  differ. It also covers strict resolution, wait predicates, skeleton drill-down,
  sessions, trace redaction, surfaces, drag, expand, and force-close.
- The compiled fixture .app is a build artifact (gitignored; built on demand).

Run: cargo build --release && bash tests/e2e/run.sh (needs AX permission).
2026-06-17 13:43:19 -07:00
..
conformance fix(review): eliminate per-element AX round trips and close remaining review findings 2026-06-17 13:43:19 -07:00
e2e test: add E2E fixture app and dual-mode harness 2026-06-17 13:43:19 -07:00
fixture-app test: add E2E fixture app and dual-mode harness 2026-06-17 13:43:19 -07:00
fixtures feat: progressive skeleton traversal with ref-rooted drill-down (#20) 2026-04-16 01:46:31 -07:00