Closed alorma closed 5 years ago
That is truly unexpected behavior. Can you share with us the version of Kakao you're using?
kakaoVersion = "1.4.0"
Thanks! I will investigate issue in when I will have free time. But for starters it seems that lastChild
extension function's matcher is not matching correctly. You can try replacing this call with childAt<AddressItem>(size() - 1) {
to see if there is any difference.
Cheers!
Hi there! I'm very sorry that I didn't have any time lately to look into your issue. Have you managed to resolve it yourself by any chance?
Hi, I'm getting the same @alorma 's error.
I'm using kakao version 1.4.0
Output: https://gist.github.com/dsceinos/ec1302d49b447429898b8b497317d8eb
Code:
screen {
recycler {
hasSize(2)
childAt<Screen.Item>(0) {
titleTextView { containsText(item1.description) }
}
childAt<Screen.Item>(1) {
titleTextView { containsText(item2.description) }
}
}
}
Can you please provide your screen class source?
I saw your exception, and the matcher does not matching recycler view as your item's parent. My guess here is that you haven't declared your item class correctly.
I've recheck item declaration and I found that I forgot to add item's view constructor with parent
parameter.
Thanks!
Nice. I suppose @alorma had same problem, so I'm closing this issue.
Steps to reproduce:
Screen
with recycler viewObserved Results:
https://gist.github.com/alorma/4b2cf664f6f92c6ba4f9abc8416c335e
As you can see, the item shows a
****MATCHES****
Expected Results:
Two assertions success, as you can see, the second assert ("Calle Llull nº 113 - 119, 08025 Barcelona") is on the output of the view hierarchy
Relevant Code: