avito-android icon indicating copy to clipboard operation
avito-android copied to clipboard

Thread.sleep(1000) after swipe

Open idyatlov opened this issue 2 years ago • 2 comments

I noticed that we are waiting 1000ms after every swipe event. Can it be fixed or at least can the reason for that be documented?

https://github.com/avito-tech/avito-android/blob/7b6e591e936c589e0bc12786d8c633f4980306c6/subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/action/ActionsImpl.kt#L33

idyatlov avatar Jan 10 '22 14:01 idyatlov

Hello, Ivan!

Can you run an experiment without this sleep? Does it affect stability? It can easily be an obsolete measure

This sleep call introduced in the very beginning of library development and wasn't tested much, because we in Avito rarely or maybe even never use swipe method in tests.

dsvoronin avatar Jan 11 '22 11:01 dsvoronin

Hello, Dmitriy

I will check it then and put the results here

idyatlov avatar Jan 11 '22 12:01 idyatlov