Open RobinCaroff opened 1 year ago
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
Pixel 6a / Android 13 Maestro 1.27.0
- launchApp
- assertVisible:
text: "Sign in"
- tapOn: "Email"
- eraseText
Hi, is there any update on this? I'm still facing this issue on Maestro 1.28.0 Meanwhile, if you have any alternate options to clear the entire text please suggest.
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 repeat
to at least lower the amount of code (which is really just a slightly more DRY version of @RobinCaroff's original workaround, thank!):
- repeat:
times: 2
commands:
- tapOn: <field that needs to be erased>
- eraseText
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).
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 "valid@email.fr"
Observed result
The EditText contains "valid@email.fr.fr" <-- the end of the previous input remains.
Temporary fix
As a temporary fix, I select the Edittext and
eraseText
twice before editing it: