test: lock find click JSON response to exact deterministic key set

Merged
TH
9mo ago
+46-3

Summary

  • Add strict key-set assertions (deepEqual on sorted Object.keys) to all find click handler 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 exactly ref, locator, query — no x/y)
  • Strengthen the existing "explicit label locator" test with the same strict key-set check
  • Remove unused DaemonResponse import

Test plan

  • pnpm test:unit passes (541/541)
  • Tests fail if any key is added/removed/renamed in find click success payload
  • No platform-specific fields leak into response

Closes #182

šŸ¤– Generated with Claude Code