waitForAnyTag
fun ComposeUiTest.waitForAnyTag(vararg tags: String, timeout: Duration = DefaultUiTimeout): String(source)
Waits until a node with any of tags exists in the unmerged tree, and returns the first tag found in argument order. Use it when a screen can land in one of several states.
Return
The tag that appeared.
Parameters
tags
The candidate test tags.
timeout
The nonnegative wait budget.
fun ComposeTestRule.waitForAnyTag(vararg tags: String, timeout: Duration = DefaultUiTimeout): String(source)
Waits until a node with any of tags exists, and returns the first tag found in argument order.
Return
The tag that appeared.
Parameters
tags
The candidate test tags.
timeout
The nonnegative wait budget.