diff --git a/app/src/androidTest/java/com/orgzly/android/espresso/QueryFragmentTest.java b/app/src/androidTest/java/com/orgzly/android/espresso/QueryFragmentTest.java index 0afbd5ef3..ec429e787 100644 --- a/app/src/androidTest/java/com/orgzly/android/espresso/QueryFragmentTest.java +++ b/app/src/androidTest/java/com/orgzly/android/espresso/QueryFragmentTest.java @@ -385,6 +385,7 @@ public void testInheritedAndOwnTag() { scenario = ActivityScenario.launch(MainActivity.class); onView(allOf(withText("notebook-1"), isDisplayed())).perform(click()); + SystemClock.sleep(200); searchForTextCloseKeyboard("t.tag1 t.tag2"); onView(withId(R.id.fragment_query_search_view_flipper)).check(matches(isDisplayed())); onNotesInSearch().check(matches(recyclerViewItemCount(3))); @@ -725,6 +726,7 @@ public void testSearchWithState() { scenario = ActivityScenario.launch(MainActivity.class); onView(allOf(withText("notebook"), isDisplayed())).perform(click()); + SystemClock.sleep(200); searchForTextCloseKeyboard(".it.none"); onView(withId(R.id.fragment_query_search_view_flipper)).check(matches(isDisplayed())); onNotesInSearch().check(matches(recyclerViewItemCount(3)));