Closed OliverCulleyDeLange closed 4 years ago
Read the readme - See that val phone = KView { withId(R.id.phone) } is declared as a KView
val phone = KView { withId(R.id.phone) }
Read further down in the readme - See that phone { hasText("971201771") } uses the hasText() matcher
phone { hasText("971201771") }
hasText()
Try it yourself, and wonder why hasText isn't available.
Try changing KView to KTextView and everything works as expected.
KView does not have a hasText() matcher
KView should have a hasText() matcher
Am i missing something?
Thanks for notice
Thank you for noticing and letting us know! The fix is merged now.
Steps to reproduce:
Read the readme - See that
val phone = KView { withId(R.id.phone) }
is declared as a KViewRead further down in the readme - See that
phone { hasText("971201771") }
uses thehasText()
matcherTry it yourself, and wonder why hasText isn't available.
Try changing KView to KTextView and everything works as expected.
Observed Results:
KView does not have a
hasText()
matcherExpected Results:
KView should have a
hasText()
matcherAm i missing something?