Created
June 18, 2018 13:59
-
-
Save mohak1712/a5c890d42af2091f68d6f4c27d5222da 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 retryButton() { | |
webServer.setDispatcher(new MockServerDispatcher().new ErrorDispatcher()); | |
activityRule.launchActivity(new Intent()); | |
Espresso.onView(withId(R.id.btRetry)).perform(click()); | |
Espresso.onView(withId(R.id.data)).check(matches(not(isDisplayed()))); | |
Espresso.onView(withId(R.id.errorUI)).check(matches((isDisplayed()))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment