testTag

Compose Modifier

Common
fun Modifier.testTag(tag: String) = this then TestTagElement(tag)

Applies a tag to allow modified element to be found in tests.

This is a convenience method for a semantics that sets SemanticsPropertyReceiver.testTag.