Skip to content

Instantly share code, notes, and snippets.

@heitorcolangelo
Created August 12, 2016 01:26
Show Gist options
  • Save heitorcolangelo/90f1ea965f2d68dc6b19caafd749b4ec to your computer and use it in GitHub Desktop.
Save heitorcolangelo/90f1ea965f2d68dc6b19caafd749b4ec to your computer and use it in GitHub Desktop.
MainActivityTest - recycler view layout item WRONG
@Test
public void checkUserItemView_isDisplayed() {
server.enqueue(new MockResponse().setResponseCode(200).setBody(Mocks.SUCCESS));
mActivityRule.launchActivity(new Intent());
onView(withId(R.id.user_view_image)).check(matches(isDisplayed()));
onView(withId(R.id.user_view_name)).check(matches(isDisplayed()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment