KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin
https://kakaocup.github.io/Kakao/
Apache License 2.0
325 stars 28 forks source link

KTextInputLayout's hasHint() and hasError() doesn't work with Spannable #49

Closed iyakovlev closed 2 years ago

iyakovlev commented 2 years ago

Since TextInputLayout.hint and TextInputLayout.error are CharSequence, the KTextInputLayout.hasHint() and KTextInputLayout.hasError() checks may fail if we assign a Spannable instance to this attributes.

Relevant Code:

     fun hasHint(hint: String) {
         view.check(ViewAssertion { view, notFoundException ->
             if (view is TextInputLayout) {
                if (hint != view.hint) {