Планета гаджетов / технологий
Testing lists, grids and spinners with Espresso needs a different approach than the standard View matching with onView(). Learn how to use onData() to look for data in the Adapters backing your AdapterViews to easily bring the required row on screen.
Further reading:
AdapterViews and Espresso on Medium: https://goo.gl/PYBsOq
Espresso onData documentation: https://goo.gl/sMBXJY
Espresso DataAdapter Sample: https://goo.gl/1EwQs2
Watch more episodes of Android Testing Patterns here: https://goo.gl/g1bLh4
Subscribe to the Android Developers channel at http://goo.gl/GEh1ds
Источник