I have a RecyclerView with different items in it. The items can be of different types : TYPE_ONE or TYPE_TWO.
RecyclerView
TYPE_ONE
TYPE_TWO
It is given randomly in the getItemViewType function.
getItemViewType
I want to test an item of TYPE_TWO with a position higher than 3. How can I do that with Espresso instrument tests ?
Espresso
Is there a function like onView(withType(TYPE_TWO)) ?
onView(withType(TYPE_TWO))
1.4m articles
1.4m replys
5 comments
56.9k users