I have recycler view with children textviews. I would like to verify that a text is not present in the recycler view without the need of scrolling it.
Current solution works but is too hacky i think.
@Test(expected = PerformException.class)
public void verifyUserIsNotPresentInParticipantsList() {
onView(withId(R.id.fab)).perform(click());
onView(withId(R.id.recyclerView)).perform(scrollTo(hasDescendant(withText("My Text"))));
}