diff --git a/app/src/androidTest/java/com/orgzly/android/espresso/SavedSearchesFragmentTest.java b/app/src/androidTest/java/com/orgzly/android/espresso/SavedSearchesFragmentTest.java index 09b05c5e3..3fdef1f1e 100644 --- a/app/src/androidTest/java/com/orgzly/android/espresso/SavedSearchesFragmentTest.java +++ b/app/src/androidTest/java/com/orgzly/android/espresso/SavedSearchesFragmentTest.java @@ -74,10 +74,10 @@ public void testNewSameNameSavedSearch() { public void testUpdateSameNameSavedSearch() throws InterruptedException { onView(withId(R.id.fragment_saved_searches_flipper)).check(matches(isDisplayed())); onSavedSearch(0).perform(click()); + Thread.sleep(500); onView(withId(R.id.fragment_saved_search_flipper)).check(matches(isDisplayed())); onView(withId(R.id.fragment_saved_search_query)).perform(typeText(" edited")); onView(withId(R.id.done)).perform(click()); // Saved search done - Thread.sleep(500); onView(withId(R.id.fragment_saved_searches_flipper)).check(matches(isDisplayed())); }