I am trying to test EditTexts in my form that are within a NestedScrollView. I am running the following code:
onView(withId(R.id.register_scroll_view)).perf
I don't have any experience with NestedScrollView, but it appears that requestRectangleOnScreen()
, which is how espresso scrolls in the regular ScrollView, should work with NestedScrollView just the same.
The only problem is that ScrollView constrain is hardcoded into the scrollTo()
action and NestedScrollView doesn't inherit the regular ScrollView.
I believe the only solution here is to copy and paste entire ScrollToAction class into your own implementation of this action and replace the pesky constrain.