From 2ed37f2d672357d53af2640b9107d687b911aa5c Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Thu, 4 Apr 2024 16:55:57 +0200 Subject: [PATCH] Move sleep --- .../com/orgzly/android/espresso/SavedSearchesFragmentTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); }