test: lock find click JSON response to exact deterministic key set
Merged
TH
9mo ago+46+46+01234567890123456789-3-3-0123456789
Summary
- Add strict key-set assertions (
deepEqualon sortedObject.keys) to allfind clickhandler tests so they fail if any key is added, removed, or renamed in the success payload - Add a new test covering the fallback coordinate path where the resolved hittable ancestor lacks a
rect(response must contain exactlyref,locator,queryā nox/y) - Strengthen the existing "explicit label locator" test with the same strict key-set check
- Remove unused
DaemonResponseimport
Test plan
-
pnpm test:unitpasses (541/541) - Tests fail if any key is added/removed/renamed in
find clicksuccess payload - No platform-specific fields leak into response
Closes #182
š¤ Generated with Claude Code