Created
August 19, 2018 15:06
-
-
Save phellipealexandre/2b40ff9919df39021f92b4b56bbca2bf to your computer and use it in GitHub Desktop.
Espresso test example
This file contains hidden or 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 greeterSaysHello() { | |
onView(withId(R.id.name_field)).perform(typeText("Steve")); | |
onView(withId(R.id.greet_button)).perform(click()); | |
onView(withText("Hello Steve!")).check(matches(isDisplayed())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment