KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin

Home Page:https://kakaocup.github.io/Kakao/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KTextInputLayout > hasError for null values

dsuresh-ap opened this issue · comments

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
image

Expected Results:

The hasText(String) function allows null values.

Relevant Code:

See above

@dsuresh-ap I prefer to avoid 'null' as parameters for functions. However 'hasNoError()' will be add in next release. Does it works for you?

@Vacxe if hasNoError() will support checking for null or "" values then yes it will!

@dsuresh-ap yes it is. 3.0.3 release