I have a recyclerview adapter which takes an onclick listener as a constructor parameter like so
Adapter{}.
The clicklistener is then passed to the ViewHolder constructor in onCreateViewHolder. In the ViewHolder, when a view inside the itemView is clicked, I invoke the onClicklistener. The fragment in which the recyclerview adapter is intialized then executes the code inside the lambda, this lambda specifically Adapter{}. In this case the lambda executes code that navigates to a different fragmentso that I can make further assertions. However, Espresso is not executing this code.
This question is similar to this one Similar Question
What I want to know is does Espresso currently support this functionality or there is something wrong with my code?
N.B. I am using the latest Espresso versions i.e. 3.5.1