diff --git a/app/src/androidTest/java/com/orgzly/android/espresso/util/EspressoUtils.java b/app/src/androidTest/java/com/orgzly/android/espresso/util/EspressoUtils.java index 5dddd0038..b6b1941a3 100644 --- a/app/src/androidTest/java/com/orgzly/android/espresso/util/EspressoUtils.java +++ b/app/src/androidTest/java/com/orgzly/android/espresso/util/EspressoUtils.java @@ -23,6 +23,7 @@ import android.content.res.Resources; import android.os.Build; +import android.os.SystemClock; import android.text.Spanned; import android.text.style.ClickableSpan; import android.view.KeyEvent; @@ -187,6 +188,7 @@ public static ViewInteraction onSavedSearch(int position) { } public static ViewInteraction onRecyclerViewItem(@IdRes int recyclerView, int position, @IdRes int childView) { + SystemClock.sleep(500); onView(isRoot()).perform(waitId(recyclerView, 5000)); onView(withId(recyclerView)).perform(RecyclerViewActions.scrollToPosition(position)); return onView(new EspressoRecyclerViewMatcher(recyclerView)