Skip to content

Instantly share code, notes, and snippets.

@mohak1712
Created June 18, 2018 17:44
Show Gist options
  • Select an option

  • Save mohak1712/cee6153a1fb324907336353dd5aa1c4a to your computer and use it in GitHub Desktop.

Select an option

Save mohak1712/cee6153a1fb324907336353dd5aa1c4a to your computer and use it in GitHub Desktop.
@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