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
You can try this option if you check the view visibility "withEffectiveVisibility"
onViewWithId(R.id.YOURVIEW).check(matches(ViewMatchers.withEffectiveVisibility(ViewMatchers.Visibility.GONE)))