Function

waitUntilDoesNotExist

Blocks until no nodes match the given matcher.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

waitUntilDoesNotExist

Common
@ExperimentalTestApi
fun ComposeUiTest.waitUntilDoesNotExist(matcher: SemanticsMatcher, timeoutMillis: Long = 1_000L) =
    waitUntilNodeCount(matcher, 0, timeoutMillis)

Blocks until no nodes match the given matcher.

Parameters

matcher The matcher that will be used to filter nodes.
timeoutMillis The time after which this method throws an exception if any nodes match the given matcher. This observes wall clock time, not frame time.