Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Espresso work with viewBinding { enabled = true } #314

Open
thrlr123 opened this issue Apr 1, 2020 · 0 comments
Open

Does Espresso work with viewBinding { enabled = true } #314

thrlr123 opened this issue Apr 1, 2020 · 0 comments

Comments

@thrlr123
Copy link

thrlr123 commented Apr 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant