I am having problems testing my application. I created an espresso test that should fail, because whenever I run my application in the emulator, I get the expected behavior. There is my test:
onView(withText("wrong answer")).perform(click()); onView(withId(R.id.nextQuestionButton)).check(matches(isEnabled()));
When the test starts, nothing is reported, while nextQuestionButton should not turn on when you click on the radioButton, the text of which is the "wrong answer".
java android android-studio android-espresso espresso
ใต ใฝ ใช
source share