You can check the Enabled
status of the button after entering the text in the EditText
by using:
onView(withId(R.id.yourButtonId)).check(matches(isEnabled()))
Or you can also check whether it is disabled by using:
onView(withId(R.id.categoryContinueBtn)).check(matches(not(isEnabled())))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…