mercredi 8 mars 2017

How to test EditText no error with Espresso on Android?

I know how to test EditText with error with Espresso like this

editText.check(matches(hasErrorText("")));

Now I wanna test EditText without error, I've tried this but now work.

editText.check((matches(not(hasErrorText("")))));

Does anyone know how to do that? Thanks!

Aucun commentaire:

Enregistrer un commentaire