Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Espresso test extensions
fun Int.matchView(): ViewInteraction = onView(withId(this))
fun Int.checkVisible(): ViewInteraction = matchView()
fun Int.checkInvisible(): ViewInteraction = matchView()
fun Int.checkGone(): ViewInteraction = matchView()
// etc etc, add as many of these as you need
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.