Espresso, scrolling not working when NestedScrollView or RecyclerView is in CoordinatorLayout
This is happening because the Espresso scrollTo() method explicitly checks the layout class and only works for ScrollView & HorizontalScrollView. Internally it’s using View.requestRectangleOnScreen(…) so I’d expect it to actually work fine for many layouts. My workaround for NestedScrollView was to take ScrollToAction and modify that constraint. The modified action worked fine for NestedScrollView with … Read more