isNotDisplayed
Function
Common
fun SemanticsNodeInteraction.isNotDisplayed(): Boolean
Asserts that the current semantics node is not displayed on screen.
If no matching node is found, returns true. If multiple nodes match, throws an AssertionError.
Code Examples
waitForNotDisplayed
fun waitForNotDisplayed() {
val interaction = composeTestRule.onNodeWithTag("test")
composeTestRule.waitUntil { interaction.isNotDisplayed() }
}
