Skip to content

Commit

Permalink
Add sleeps to some more flaky Espresso tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Jun 15, 2024
1 parent 19c606b commit 1da0da0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ public void testSortByPriorityDesc() {
"* Note D\n");
scenario = ActivityScenario.launch(MainActivity.class);

SystemClock.sleep(200);
onView(allOf(withText("notebook"), isDisplayed())).perform(click());
searchForTextCloseKeyboard(".o.p");
onView(withId(R.id.fragment_query_search_view_flipper)).check(matches(isDisplayed()));
Expand Down Expand Up @@ -779,6 +780,7 @@ public void testDeSelectRemovedNoteInSearch() {
public void testNoNotesFoundMessageIsDisplayedInSearch() {
scenario = ActivityScenario.launch(MainActivity.class);
searchForTextCloseKeyboard("Note");
SystemClock.sleep(200);
onView(withText(R.string.no_notes_found_after_search)).check(matches(isDisplayed()));
}

Expand Down

0 comments on commit 1da0da0

Please sign in to comment.