Created
June 18, 2018 17:44
-
-
Save mohak1712/cee6153a1fb324907336353dd5aa1c4a to your computer and use it in GitHub Desktop.
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 testHappyCondition() { | |
| webServer.setDispatcher(new MockServerDispatcher().new RequestDispatcher()); | |
| activityRule.launchActivity(new Intent()); | |
| Espresso.onView(withId(R.id.progressBar2)).check(matches(not(isDisplayed()))); | |
| Espresso.onView(withId(R.id.button)).check(matches(not(isDisplayed()))); | |
| Espresso.onView(withId(R.id.textView)).check(matches(isDisplayed())); | |
| Espresso.onView(withId(R.id.errorView)).check(matches(not(isDisplayed()))); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment