https://kotlinlang.org logo
#compose
Title
# compose
v

Vinay Gaba

10/03/2020, 6:32 AM
Noticing some weird behavior where my UI tests pass on the emulator but fail on the device. I’m doing a super basic check -
composeTestRule.onNodeWithText("Title").assertExists()
a

allan.conda

10/03/2020, 9:05 AM
maybe due to the animations not being disabled?
v

Vinay Gaba

10/03/2020, 5:44 PM
I did keep those disabled
a

allan.conda

10/03/2020, 6:13 PM
have you tried to print the node tree if it’s there
i had similar issues before so it’s either an animation issue or for some reason calling waitForIdle() before the assert works. 🤷‍♂️
3 Views