KTextInputLayout > hasError for null values
dsuresh-ap opened this issue · comments
Dhananjay Suresh commented
Steps to reproduce:
class UrlValidationScreen : Screen<UrlValidationScreen>() {
val urlInputLayout = KTextInputLayout { withId(R.id.urlInputLayout) }
}
// Assert
urlInputLayout {
hasError(null) // Will not work
}
Observed Results:
Null cannot be passed to hasText
Expected Results:
The hasText(String)
function allows null values.
Relevant Code:
See above
Konstantin Aksenov commented
@dsuresh-ap I prefer to avoid 'null' as parameters for functions. However 'hasNoError()' will be add in next release. Does it works for you?
Dhananjay Suresh commented
@Vacxe if hasNoError()
will support checking for null
or ""
values then yes it will!
Konstantin Aksenov commented
@dsuresh-ap yes it is. 3.0.3 release