Skip to content

net.natura.testcommons.assertions.hasErrorInTextField

Lucas de Souza da Conceição edited this page Jul 2, 2020 · 1 revision

hasErrorInTextField

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"))

Parameters

expectedText - The text that is expected to be displayed as error message.

Clone this wiki locally