maestro
maestro copied to clipboard
`inputText` sometimes repeats individual characters
Is there an existing issue for this?
- [X] I have searched the existing issues and didn't find mine.
Steps to reproduce
This is a flake. It sometimes occur in our E2E action.
Actual results
Sometimes individual characters are repeated.
So far I noticed a few occurences of this:
- https://github.com/mobile-dev-inc/maestro/pull/1995#issuecomment-2322927088
- https://github.com/mobile-dev-inc/maestro/pull/1854#issuecomment-2324388637
- https://github.com/mobile-dev-inc/maestro/pull/1946#issuecomment-2324950805
- https://github.com/mobile-dev-inc/maestro/pull/1955#issuecomment-2325132534
- https://github.com/mobile-dev-inc/maestro/pull/1955#issuecomment-2326226068
Expected results
inputText always inputs expactly the text specified.
About app
It's our demo_app.
About environment
The environment on our GitHub Action.
We run tests on Android emulator, v28.
It's unknown at this time if this issue also occurs on iOS.
Logs
Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->
Maestro version
1.38.1
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
No response
FYI @bartekpacia we experience a lot of those in our flows. We had to resort to stuff like this to try and make tests less flaky
- inputText: 'H'
- inputText: 'e'
- inputText: 'l'
- inputText: 'l'
- inputText: 'o'
Offending code:
https://github.com/mobile-dev-inc/maestro/blob/d87b81549e762b955fe8394b813f00b082ef80e3/maestro-android/src/androidTest/java/dev/mobile/maestro/MaestroDriverService.kt#L287-L303
Linked https://github.com/mobile-dev-inc/maestro/issues/1667