Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

onAllSubspaceNodes

Finds all semantics nodes in the Subspace hierarchy that match the given condition.

onAllSubspaceNodes

Source set: Android
public fun AndroidComposeTestRule<*, *>.onAllSubspaceNodes(
    matcher: SubspaceSemanticsMatcher
): SubspaceSemanticsNodeInteractionCollection

Finds all semantics nodes in the Subspace hierarchy that match the given condition.

This function only locates nodes within the Subspace hierarchy and does not include nodes from standard 2D compose contexts. For locating 2D nodes, use AndroidComposeTestRule.onAllNodes. If you are dealing with elements guaranteed to occur exactly once, prefer using onSubspaceNode to enforce uniqueness constraints and improve clarity.

Parameters

matcher the SubspaceSemanticsMatcher used to filter the semantics nodes.

Returns

the SubspaceSemanticsNodeInteractionCollection containing all matching nodes.

Last updated: