maestro icon indicating copy to clipboard operation
maestro copied to clipboard

`inputText` sometimes repeats individual characters

Open bartekpacia opened this issue 1 year ago • 3 comments

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

bartekpacia avatar Sep 02 '24 15:09 bartekpacia

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'

tokou avatar Sep 03 '24 11:09 tokou

Offending code:

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

bartekpacia avatar Sep 03 '24 12:09 bartekpacia

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

tokou avatar Sep 16 '24 12:09 tokou