Function

waitUntilAtLeastOneExists

Blocks until at least one node matches the given matcher.

Source set: Common

Added in 1.11.0-rc01

@ExperimentalTestApi
fun ComposeUiTest.waitUntilAtLeastOneExists(
    matcher: SemanticsMatcher,
    timeoutMillis: Long = 1_000L,
)

Blocks until at least one node matches 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 no nodes match the given matcher. This observes wall clock time, not frame time.