Skip to content

Commit

Permalink
Add a few more sleeps to flaky Espresso tests
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Andreasson <[email protected]>
  • Loading branch information
amberin committed Jun 16, 2024
1 parent 8cf288d commit 70814cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ public void testSetDeadlineTimeForNewNote() {
onView(withId(R.id.date_picker_button)).perform(click());
onView(withClassName(equalTo(DatePicker.class.getName()))).perform(setDate(2014, 4, 1));
onView(withText(android.R.string.ok)).perform(click());
SystemClock.sleep(100);
onView(withText(R.string.set)).perform(click());
onView(withId(R.id.deadline_button)).check(matches(withText(userDateTime("<2014-04-01 Tue>"))));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public void testClickingNote() {
defaultSetUp();

onView(allOf(withText("book-two"), isDisplayed())).perform(click());
SystemClock.sleep(100);
searchForTextCloseKeyboard("b.book-two Note");
onView(withId(R.id.fragment_query_search_view_flipper)).check(matches(isDisplayed()));
onNotesInSearch().check(matches(recyclerViewItemCount(29)));
Expand Down

0 comments on commit 70814cc

Please sign in to comment.