Skip to content
Advertisement

Tag: android-espresso

Android Espresso: How to create test-suite which may launch separate test classes with different activities?

I have just started studying Espresso tests, but I have searched throw StackOverFlow topics and couldn’t found solution for my needs. Prehistory of my question: I have android application with lots of activities. Generally separate UI tests were created for different flows of the app (each flow require separate activity, so that’s why I have implemented tests in a different

Android: checking a button is enabled

I am having problems testing my app. I created an espresso test which is supposed to fail, since whenever I launch my app in the emulator, I get the expected behavior. There is my test: When launching the test, nothing is reported, whereas nextQuestionButton should not be enabled upon clicking the radioButton whose text is “wrong answer”. Answer According to

How to assert inside a RecyclerView in Espresso?

I am using espresso-contrib to perform actions on a RecyclerView, and it works as it should, ex: and I need to perform assertions on it. Something like this: but, because RecyclerViewActions is, of course, expecting an action, it says wrong 2nd argument type. There’s no RecyclerViewAssertions on espresso-contrib. Is there any way to perform assertions on a RecyclerView? Answer You

Advertisement