I am trying to test the absence of the UI view. The view selector is as follows:
public static ViewInteraction onMyTestUi() { return onView(withId(R.id.m
Also work with yours method, but something like this:
onView(withId(R.id.next)).check(matches(not(isDisplayed())));