Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created March 12, 2021 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyshain/690fc54dc601fa66006d3e15d39dc079 to your computer and use it in GitHub Desktop.
Save dannyshain/690fc54dc601fa66006d3e15d39dc079 to your computer and use it in GitHub Desktop.
@Test
public void mainActivityTest2() {
onView(withId(R.id.digit_1)).perform(click());
onView(withId(R.id.op_add)).perform(click());
onView(withId(R.id.digit_2)).perform(click());
onView(withId(R.id.eq)).perform(click());
onView(allOf(Matchers.instanceOf(android.widget.EditText.class),
withText("3"))).check(matches(isDisplayed()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment