Created
August 18, 2016 01:28
-
-
Save heitorcolangelo/e5acf937428e3055de6266d3a68e2008 to your computer and use it in GitHub Desktop.
MainActivityTest - testing list item no tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void checkUserItemView_isDisplayed_noTricks() { | |
server.enqueue(new MockResponse().setResponseCode(200).setBody(Mocks.SUCCESS)); | |
mActivityRule.launchActivity(new Intent()); | |
onView(allOf(withId(R.id.user_view_image), hasSibling(withText("Eddie Dunn")))).check(matches(isDisplayed())); | |
onView(allOf(withId(R.id.user_view_name), withText("Eddie Dunn"))).check(matches(isDisplayed())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment