Skip to content

Commit 63672dd

Browse files
authored
Merge pull request #162 from hannesa2/MoreStableScreenshots
Make tests more stable
2 parents 9d6fa40 + 9b0b7a8 commit 63672dd

File tree

1 file changed

+2
-0
lines changed
  • demo/src/androidTest/java/info/hannes/slidingup/demo

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class AnchorTest {
105105
for (i in 0..2) {
106106
onView(withId(R.id.follow)).perform(ViewActions.swipeUp())
107107
onView(withId(R.id.follow)).perform(ViewActions.swipeDown())
108+
Thread.sleep(WAIT_SLIDER)
108109
onView(ViewMatchers.isRoot())
109110
.captureToBitmap()
110111
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-EXPANDED-$i")
@@ -116,6 +117,7 @@ class AnchorTest {
116117
for (i in 0..2) {
117118
onView(withId(R.id.follow)).perform(ViewActions.swipeUp())
118119
onView(withId(R.id.follow)).perform(ViewActions.swipeDown())
120+
Thread.sleep(WAIT_SLIDER)
119121
onView(ViewMatchers.isRoot())
120122
.captureToBitmap()
121123
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-ANCHORED-$i")

0 commit comments

Comments
 (0)