Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luizmarcus/ba9f009f9f525258d3c8 to your computer and use it in GitHub Desktop.
Save luizmarcus/ba9f009f9f525258d3c8 to your computer and use it in GitHub Desktop.
@Test
public void executarTesteLoginContaCorreta() {
//Insere o usuário no campo user
onView(withId(R.id.user)).perform(typeText("Testeapp"), closeSoftKeyboard());
//Insere a senha no campo pass
onView(withId(R.id.pass)).perform(typeText("Password"), closeSoftKeyboard());
//Clica no botao submit
onView(withId(R.id.submit)).perform(click());
//Verifica se o texto é exibido no textView da SecondActivity
onView(withId(R.id.success)).check(matches(withText("Logado!")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment