testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

Does Espresso work with viewBinding { enabled = true }

Open thrlr123 opened this issue 5 years ago • 0 comments

My espresso tests were working fine before I updated to AS 3.6 with

viewBinding {
        enabled = true
    }

Now, when I do something like this it is not working:

public static void tapCard(String PageName) throws Throwable {
       Lets.performAndTakeSS(On.LocationsListDetails.CARDS_RECYCLER_VIEW, RecyclerViewActions.scrollTo(hasDescendant(EspressoMatchers.withText(EspressoMatchers.endsWith(PageName)))));
       Lets.performAndTakeSS(On.LocationsListDetails.CARDS_RECYCLER_VIEW, RecyclerViewActions.actionOnItem(hasDescendant(EspressoMatchers.withText(EspressoMatchers.endsWith(PageName))), click()));
   }

Am I supposed to change anything to work with viewbinding? Seeing this issue especially with Fragments.

thrlr123 avatar Apr 01 '20 19:04 thrlr123