Skip to content

Commit 72dd66c

Browse files
committed
Make tests more stable
1 parent 64f0e65 commit 72dd66c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demo/src/androidTest/java/info/hannes/slidingup/demo/NoAnchorTest.kt

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class NoAnchorTest {
7575
for (i in 0..2) {
7676
onView(withId(R.id.follow)).perform(ViewActions.swipeUp())
7777
onView(withId(R.id.follow)).perform(ViewActions.swipeDown())
78+
Thread.sleep(WAIT_SLIDER)
7879
onView(ViewMatchers.isRoot())
7980
.captureToBitmap()
8081
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-EXPANDED-$i")
@@ -95,6 +96,7 @@ class NoAnchorTest {
9596
Thread.sleep(WAIT_SLIDER)
9697
// should be still EXPANDED
9798
onView(withId(R.id.sliding_layout)).check(matches(withValue(PanelState.EXPANDED)))
99+
Thread.sleep(WAIT_SLIDER)
98100
onView(ViewMatchers.isRoot())
99101
.captureToBitmap()
100102
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-2")

0 commit comments

Comments
 (0)