How can I assert in Compose UI tests that a node i...
# compose
l
How can I assert in Compose UI tests that a node is visible?
onNodeWithTag("my tag").assertIsDisplayed()
passes the test even if the element is not visible.
These elements are actually animated away, maybe I need to somehow wait until the animation finishes?
When I use
awaitIdle()
after
performClick()
, the test just hangs indefinitely.
c
Usually animations are disabled during UI tests to prevent these kind of errors
l
Ah ok
Thank you!