This is a demo Android app with some UI tests, written using Espresso & Barista libraries. The tests cover interaction with RecyclerView, Menu, EditText and Button, alert dialog and browser, as well as the check for opened activity and the content of the view.
Written using Android Studio 4.1 and Gradle 4.1.0
Right click on androidTest package and choose Run ‘Tests in ‘com’’ or navigate to GroceriesSteps class and press on Play icon on the left of class declaration.
Navigate to GroceriesAppAndroidTestRunner and remove ~ from [“~@wip"] and annotate the selected (or new) tests with @wip tag (above Scenario or Feature keyword).
Image source in the app: http://www.stephanielevinson.com