{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TestTagKt

public final class TestTagKt


Summary

Public methods

static final @NonNull Modifier
testTag(@NonNull Modifier receiver, @NonNull String tag)

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

Public methods

testTag

public static final @NonNull Modifier testTag(@NonNull Modifier receiver, @NonNull String 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.