KakaoCup / Kakao

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

Tests with KViewPager/KViewPager2 SwipeableActions methods are flaky #65

Closed audkar closed 1 year ago

audkar commented 1 year ago

Steps to reproduce:

(It's hard to reproduce. We are having like 1 flaky test in 10k runs)

  1. Use any of SwipeableActions interface methods on ViewPager/ViewPager2
  2. Assert that child of ViewPager is completely displayed.

Observed Results:

Current page of ViewPager is not fully settled after end of SwipeableActions

Expected Results:

Assertions can be made immediately after swipe action

Relevant Code:

 viewPager.swipeLeft()
 someChild.isCompletelyDisplayed()

PR with reproduction on Sample App

--