Skip to content

Instantly share code, notes, and snippets.

@Eightyplus
Created December 4, 2020 10:29
Show Gist options
  • Save Eightyplus/af3cd9a78674a64a3d190eae959abc98 to your computer and use it in GitHub Desktop.
Save Eightyplus/af3cd9a78674a64a3d190eae959abc98 to your computer and use it in GitHub Desktop.
class Test {
@Test
fun `should test recycler`() {
onData(is(instanceOf(ItemModel.class)))
.atPosition(0)
.onChildView(withId(R.id.item_image))
.perform(click())
onData(anything())
.inAdapterView(withId(R.id.my_grid_view))
.atPosition(0)
.onChildView(withId(R.id.item_image)).perform(click())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment