Testing EditText errors with Espresso on Android
This worked for me under
onView(withId(R.id.signin_email)).check(matches(hasErrorText("Email not valid")));
You change editText.check(matches(isDisplayed()));
to editText.check(matches(hasErrorText("Cannot be blank!")));