Last active
July 24, 2016 16:06
-
-
Save heitorcolangelo/8bc6bd108d3086ce24a823a45433652f to your computer and use it in GitHub Desktop.
LoginActivityTest - Initial state test
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
@RunWith(AndroidJUnit4.class) | |
public class LoginActivityTest { | |
@Rule | |
public ActivityTestRule<LoginActivity> | |
mActivityRule = new ActivityTestRule<>(LoginActivity.class, false, true); | |
@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