Skip to content

Instantly share code, notes, and snippets.

@heitorcolangelo
Last active July 24, 2016 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heitorcolangelo/8bc6bd108d3086ce24a823a45433652f to your computer and use it in GitHub Desktop.
Save heitorcolangelo/8bc6bd108d3086ce24a823a45433652f to your computer and use it in GitHub Desktop.
LoginActivityTest - Initial state test
@Test
public void whenActivityIsLaunched_shouldDisplayInitialState() {
onView(withId(R.id.login_image)).check(matches(isDisplayed()));
onView(withId(R.id.login_username)).check(matches(isDisplayed()));
onView(withId(R.id.login_password)).check(matches(isDisplayed()));
onView(withId(R.id.login_button)).check(matches(isDisplayed()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment