mobile-dev-inc / maestro

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

`inputText` sometimes repeats individual characters #2005

Open bartekpacia opened 2 months ago

bartekpacia commented 2 months ago

Is there an existing issue for this?

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:

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 ``` ```

Maestro version

1.38.1

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

tokou commented 2 months ago

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'
bartekpacia commented 2 months ago

Offending code:

https://github.com/mobile-dev-inc/maestro/blob/d87b81549e762b955fe8394b813f00b082ef80e3/maestro-android/src/androidTest/java/dev/mobile/maestro/MaestroDriverService.kt#L287-L303

tokou commented 2 months ago

Linked https://github.com/mobile-dev-inc/maestro/issues/1667