-
Notifications
You must be signed in to change notification settings - Fork 0
net.natura.testcommons.assertions.hasErrorInTextField
Lucas de Souza da Conceição edited this page Jul 2, 2020
·
1 revision
fun hasErrorInTextField(expectedText:
String
): ViewAssertion
Checks if the TextField is in error state and displays a given error.
Example usage:
onView(withId(R.id.the_textfield_id)).check(hasErrorInTextField("my error message"))
expectedText
- The text that is expected to be displayed as error message.