fix(find): mark a no-match find as not dispatched, and name the viewport a gesture left
Merged
IM
5d ago+59+59+01234567890123456789-18-18-01234567890123456789
Summary
A find that matched nothing was disclosed as "May have reached the device", because a bare find is a click. It's now dispatched: no, and the click case points to find text "..." exists for lookups.
A gesture that leaves the viewport now names the viewport size and the first point outside it. When a coordinate caused the refusal, the hint says to use snapshot units, which are points on Apple platforms, not screenshot pixels. commands.md says so too.
Before / after
Pixel 9 AVD (Android 16), in Settings:
$ find "All projects"
base a4f2dcad0: find did not match any element. May have reached the device. Next: Run snapshot… Read the diagnostics log for the failing step.
head c6f1ba8bc: find did not match any element. Not dispatched. Next: Run snapshot -i…, or scroll first… This find clicks its match; to look an element up without acting on it, use find text "..." exists.
$ swipe 380 3000 20 3000
base: Gesture trajectory does not fit inside the viewport.
head: Gesture point (380, 3000) is outside the usable area of the 1080x2424 viewport.
Validation
- Head
c6f1ba8bc,check:affected --run --head,exactCommit: true. Every gate passes exceptunit:upload-http-deadlineandcommitted-source-treefail the same way on clean main on this macOS host, and two 5 s load timeouts pass when run alone. command-docs,doc-linksanddoc-prosepass.- The find contract test fails without the fix (
unknowninstead ofno).

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.