Created
January 13, 2019 20:53
-
-
Save igor-brishkoski/d734eabd4ae39aad6ac4c075b69d16c7 to your computer and use it in GitHub Desktop.
This file contains 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
fun ViewInteraction.click(): ViewInteraction = | |
perform(ViewActions.click()) | |
fun ViewInteraction.typeText(text: String): ViewInteraction = | |
perform(ViewActions.typeText(text), ViewActions.closeSoftKeyboard()) | |
fun ViewInteraction.isTextDisplayed(text: String): ViewInteraction = | |
check(ViewAssertions.matches(ViewMatchers.withText(text))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment