fix(wait): ignore an editable field's typed value in wait text

Merged
TH
5d ago
+399-7

Summary

After fill, wait text matched the field's own typed value and passed before Save/OK stored anything. Now an editable field never matches by its current value, or by a label repeating it (Android reports typed text as both), unless the value is its shown placeholder. Applies to every editable field. Editability comes from isNodeEditable (the editable fact, else the platform type). One rule in the snapshot path (matchesWaitText, @agent-device/selectors) and the iOS runner's native findText, pinned by contracts/fixtures/wait-text-policy.json.

Scope expansion: isFillableType treats web textbox/searchbox as fillable. Web captures have no editable fact, so editable=true missed web fields and fill warned on them. 14 files; help and docs updated.

Fixes #4479

Validation

Base eec35e9, head b1790c1 (live runs at the SHAs named below; later commits move the rule into internal/node.ts and honor hintShowing, with no change to these runs).

  • Provider scenarios fail on base, pass at head: android-find.test.ts (no editable fact), ios-wait-selector.test.ts. Golden table in TS; Swift twin in the macOS host lane.
  • iOS 27.0 simulator, Contacts, typed benchad: 0.21.31 passes in 276 ms; head 1dcee88 times out (3012 ms). "First name" and empty-field placeholders match; the saved name matches in 103 ms.
  • Android 15 emulator (android-helper 0.21.37-dev), Device name, fill bench-ad: 0.21.31 passes in 20 ms; head f1c0a01 → wait_target_absent, still absent at the warning dialog, then matches the stored name in 116 ms.
  • check:affected: CI validates the pushed head.

šŸ¤– Generated with Claude Code