-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"eraseText" cannot clear an edittext #495
Comments
We have made a lot of improvements and fixes since, can you upgrade to the latest version of Maestro and try again? If you still experience issues, we can re-open this. Thanks again for using Maestro! |
@ArthurSav I still experience this issue with version 1.27.0 EnvironmentPixel 6a / Android 13 Steps to reproduce
|
Hi, |
Also running into this on iOS, only on maestro cloud. Please provide some guidance here -- I am trying to onboard our process onto this tool but this makes the cloud product unusable |
Can confirm this is still a thing on 1.33.0. My workaround is to use
|
Still running into the same problem with Maestro CLI v1.38.1 when executing tests on a physical Android device (OnePlus Nord, Android 12, connected to Windows 11 via USB). |
There's some workarounds here. One is:
This will erase more text than the simple version, by setting the text caret further along the input. Another is to write a flow that does a longpress on the text field, hits Select All, then |
Description
After editing an edittext with wrong data I try to go back to the edittext and remove its content before inputting a new content.
Problem
When selecting the edittext, the cursor is placed at the middle of the EditText and the
eraseText
instruction only removes what's on the left of the cursor.Environment
Pixel 3a / Android 12
Maestro 1.17.2
Steps to reproduce
In case you cannot reproduce try to use a very long initial input.
Expected result
The EditText should contain "[email protected]"
Observed result
The EditText contains "[email protected]" <-- the end of the previous input remains.
Temporary fix
As a temporary fix, I select the Edittext and
eraseText
twice before editing it:The text was updated successfully, but these errors were encountered: