Skip to content

Flow parity gaps: wait text predicates, press key shorthand, erase characters - #165

Merged
bitomule merged 1 commit into
mainfrom
worktree-t-mav-159-parity-gaps
Dec 3, 2026
Merged

bitomule merged 1 commit into
mainfrom
worktree-t-mav-159-parity-gaps

Conversation

@bitomule

@bitomule bitomule commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Part of #159.

  • wait/assert/assertCount/scrollUntil accept textRegex, textStartsWith, textContains and valueContains directly (no waitUntil: { any } wrapper). Lint no longer flags such a wait as having no target.
  • press: enter|return|backspace|delete|tab|escape|space compiles to the key command with the HID code; press: home|lock|volume_up|volume_down keeps working as a hardware button.
  • erase: { characters: N } sends exactly N backspaces to the focused field (1..1000). Combined with a selector it is refused with a clear error (tap first).
  • Docs: the exec section now says it needs allow_shell: true and names the error.

Left out: scrollUntil center / visible-percentage option. It needs element frames, screen bounds and a corrective swipe loop in the scroll code, which is a larger change; it stays open in #159.

Tests: new flow_parity_test.go; they fail without the change and pass with it. go test ./... passes.

Refs #159 (does not close it, because of the scrollUntil item).

@bitomule
bitomule force-pushed the worktree-t-mav-159-parity-gaps branch from 9a26115 to 78cdbed Compare December 3, 2026 00:13
@bitomule
bitomule merged commit c2016e0 into main Dec 3, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant