Skip to content

Commit 83032cb

Browse files
committed
Add small delay before fling gesture
1 parent 3b29e95 commit 83032cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/src/main/java/com/google/samples/apps/nowinandroid/interests/InterestsActions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fun MacrobenchmarkScope.goToInterestsScreen() {
3434
}
3535

3636
fun MacrobenchmarkScope.interestsScrollTopicsDownUp() {
37-
val topicsList = device.findObject(By.res("interests:topics"))
37+
val topicsList = device.wait(Until.findObject(By.res("interests:topics")), 2_000)
3838
device.flingElementDownUp(topicsList)
3939
}
4040

0 commit comments

Comments
 (0)