mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.88k stars 281 forks source link

Fix off-by-one when specifying count with inputText #2123

Open Fishbowler opened 2 weeks ago

Fishbowler commented 2 weeks ago

Proposed changes

Self-evident 1 character change to fix a problem where we're always deleting 1 character extra. Background in the linked issue.

Testing

- inputText: 'testing'
- assertVisible: 'testing'
- eraseText: '3'
- assertNotVisible: 'testing'
- assertVisible: 'test'

Issues fixed

2122