Skip to content

Commit

Permalink
A few more sleeps in flaky Espresso tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Aug 26, 2024
1 parent c8bb202 commit 6695979
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit 6695979

Please sign in to comment.