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

onSubspaceNodeWithTag

Finds a semantics node in the Subspace hierarchy identified by the provided test tag.

onSubspaceNodeWithTag

Source set: Android
public fun AndroidComposeTestRule<*, *>.onSubspaceNodeWithTag(
    testTag: String
): SubspaceSemanticsNodeInteraction

Finds a semantics node in the Subspace hierarchy identified by the provided test tag.

This convenience function specifically searches for nodes within the Subspace hierarchy and does not locate standard 2D compose elements. The search evaluates for an exact string match on the test tag.

Parameters

testTag the specific tag string to search for within the hierarchy.

Returns

the SubspaceSemanticsNodeInteraction for the matched node.

Last updated: