KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin
https://kakaocup.github.io/Kakao/
Apache License 2.0
324 stars 28 forks source link

Direct dispatch clicks implementation #81

Closed dsvoronin closed 1 year ago

dsvoronin commented 1 year ago

implement custom "white-box" clicks with direct dispatch of events to view

Espresso clicks sometimes can be interpreted as long clicks InProcessClickAction implementation uses "white-box" approach: dispatches click events directly to View instead of espresso "black-box" way of making RPC calls to Android system server

See: https://stackoverflow.com/questions/32330671/android-espresso-performs-longclick-instead-of-click See: comment in [androidx.test.espresso.action.GeneralClickAction.perform]

Visualization of clicks enabled by default. Added double click tests