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

hasTestTag

Verifies the 3D semantic node's test tag.

hasTestTag

Source set: Android
public fun hasTestTag(testTag: String): SubspaceSemanticsMatcher

Verifies the 3D semantic node's test tag.

This is the primary mechanism for addressing spatial containers, anchors, and 3D panels in Compose for XR tests.

Parameters

testTag The string identifier assigned to the spatial element.

Returns

a matcher for the specified testTag.

Last updated: