Skip to content

Instantly share code, notes, and snippets.

@flipper83
Created September 27, 2017 14:10
Show Gist options
  • Save flipper83/f02e05e7d295b52e1309aba53b613a50 to your computer and use it in GitHub Desktop.
Save flipper83/f02e05e7d295b52e1309aba53b613a50 to your computer and use it in GitHub Desktop.
@Test public void shouldShowAnErrorWhenTheEmailIsNotAnEmail() {
onView(withId(R.id.email)).perform(typeText("Not is an email"), closeSoftKeyboard());
onView(withId(R.id.email_sign_in_button)).perform(click());
onView(withId(R.id.tv_error)).check(matches(withText(R.string.error_invalid_email)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment