# androidx.glance.testing.unit

## Classes

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode` | An implementation of `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNode` node that uses `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode` to perform assertions during testing. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode` | Hold a Glance composable node in a form that enables performing assertion on it. |

## Top-level functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasAnyDescendant(androidx.glance.testing.GlanceNodeMatcher)(matcher: https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>)` Returns a matcher that matches if a given node has a descendant node somewhere in its sub-hierarchy that the matches the provided matcher. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasClickAction()()` Returns a matcher that matches if the given node has clickable modifier set. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescription(kotlin.String,kotlin.Boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns whether the content description set directly on the node contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescription(kotlin.String,kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns whether the content description set directly on the node is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasNoClickAction()()` Returns a matcher that matches if the given node doesn't have a clickable modifier or `onClick` set. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasStartActivityClickAction(android.content.ComponentName,androidx.glance.action.ActionParameters)( componentName: https://developer.android.com/reference/android/content/ComponentName.html, parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters )` Returns a matcher that matches if a given node has a clickable set with action that starts an activity. |
| `inline https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `<T : https://developer.android.com/reference/android/app/Activity.html> https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasStartActivityClickAction(androidx.glance.action.ActionParameters,android.os.Bundle)( parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters, activityOptions: https://developer.android.com/reference/android/os/Bundle.html? )` Returns a matcher that matches if a given node has a clickable set with action that starts an activity. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasTestTag(kotlin.String)(testTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Returns a matcher that matches if a node is annotated by the given test tag. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasText(kotlin.String,kotlin.Boolean)(text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns a matcher that matches if text on node contains the provided text as its substring. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasTextEqualTo(kotlin.String,kotlin.Boolean)(text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns a matcher that matches if node is a text node and its text is equal to the provided text. |

## Extension functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasClickAction()( )` Asserts that a given node has a clickable modifier or `onClick` set. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescription(kotlin.String,kotlin.Boolean)( value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Asserts that the content description set on the node contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescription(kotlin.String,kotlin.Boolean)` as substring. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)( value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Asserts that the content description set on the node is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)` |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasNoClickAction()( )` Asserts that a given node doesn't have a clickable modifier or `onClick` set. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasStartActivityClickAction(android.content.ComponentName,androidx.glance.action.ActionParameters)( componentName: https://developer.android.com/reference/android/content/ComponentName.html, parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters )` Asserts that a given node has a clickable set with action that starts an activity. |
| `inline https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `<T : https://developer.android.com/reference/android/app/Activity.html> https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasStartActivityClickAction(androidx.glance.action.ActionParameters,android.os.Bundle)( parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters, activityOptions: https://developer.android.com/reference/android/os/Bundle.html? )` Asserts that a given node has a clickable set with action that starts an activity. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasTestTag(kotlin.String)( testTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html )` Asserts that a given node is annotated by the given test tag. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasText(kotlin.String,kotlin.Boolean)( text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Asserts that text on the given node is a text node and its text contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasText(kotlin.String,kotlin.Boolean)` as substring. |
| `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>` | `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertion<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode, https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/GlanceMappedNode>.https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasTextEqualTo(kotlin.String,kotlin.Boolean)( text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Asserts that text on the given node is text node and its text is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasTextEqualTo(kotlin.String,kotlin.Boolean)`. |

## Top-level functions

### hasAnyDescendant

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasAnyDescendant) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasAnyDescendant(matcher: GlanceNodeMatcher<MappedNode>): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if a given node has a descendant node somewhere in its sub-hierarchy that the matches the provided matcher.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `matcher: https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeMatcher<https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode>` | a matcher that needs to be satisfied for the descendant node to be matched |

### hasClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasClickAction(): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if the given node has clickable modifier set.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

### hasContentDescription

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasContentDescription) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasContentDescription(value: String, ignoreCase: Boolean = false): GlanceNodeMatcher<MappedNode>
```

Returns whether the content description set directly on the node contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescription(kotlin.String,kotlin.Boolean)`.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should be substring of the content description set directly on the node. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether case should be ignored. Default is case sensitive. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsProperties#ContentDescription()` |   |

### hasContentDescriptionEqualTo

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasContentDescriptionEqualTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasContentDescriptionEqualTo(value: String, ignoreCase: Boolean = false): GlanceNodeMatcher<MappedNode>
```

Returns whether the content description set directly on the node is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#hasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)`.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should match exactly with content description set directly on the node. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether case should be ignored. Default is case sensitive. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsProperties#ContentDescription()` |   |

### hasNoClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasNoClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasNoClickAction(): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if the given node doesn't have a clickable modifier or `onClick` set.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

### hasStartActivityClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasStartActivityClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasStartActivityClickAction(
    componentName: ComponentName,
    parameters: ActionParameters = actionParametersOf()
): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if a given node has a clickable set with action that starts an activity.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `componentName: https://developer.android.com/reference/android/content/ComponentName.html` | component of the activity that is expected to have been passed in the `actionStartActivity` method call |
| `parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters = actionParametersOf()` | the parameters associated with the action that are expected to have been passed in the `actionStartActivity` method call |

### hasStartActivityClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasStartActivityClickAction)

```
inline fun <T : Activity> hasStartActivityClickAction(
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null
): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if a given node has a clickable set with action that starts an activity.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `<T : https://developer.android.com/reference/android/app/Activity.html>` | class of the activity that is expected to have been passed in the `actionStartActivity` method call |
| `parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters = actionParametersOf()` | the parameters associated with the action that are expected to have been passed in the `actionStartActivity` method call |
| `activityOptions: https://developer.android.com/reference/android/os/Bundle.html? = null` | Additional options built from an `https://developer.android.com/reference/android/app/ActivityOptions.html` that are expected to have been passed in the `actionStartActivity` method call |

### hasTestTag

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasTestTag) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasTestTag(testTag: String): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if a node is annotated by the given test tag.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `testTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value to match against the free form string specified in the `testTag` semantics modifier on the Glance composable nodes. |

### hasText

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasText) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasText(text: String, ignoreCase: Boolean = false): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if text on node contains the provided text as its substring.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should be matched as a substring of the node's text. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether to perform case insensitive matching. Defaults to case sensitive matching. |

### hasTextEqualTo

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestFilters.kt+function:hasTextEqualTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun hasTextEqualTo(text: String, ignoreCase: Boolean = false): GlanceNodeMatcher<MappedNode>
```

Returns a matcher that matches if node is a text node and its text is equal to the provided text.

This can be passed in `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onNode(androidx.glance.testing.GlanceNodeMatcher)` and `https://developer.android.com/reference/kotlin/androidx/glance/testing/GlanceNodeAssertionsProvider#onAllNodes(androidx.glance.testing.GlanceNodeMatcher)` functions on assertion providers to filter out matching node(s) or in assertions to validate that node(s) satisfy the condition.

| Parameters |
|---|---|
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should exactly match the node's text. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether to perform case insensitive matching. Defaults to case sensitive matching. |

## Extension functions

### GlanceNodeAssertion.assertHasClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasClickAction(

): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that a given node has a clickable modifier or `onClick` set.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

### GlanceNodeAssertion.assertHasContentDescription

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasContentDescription) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasContentDescription(
    value: String,
    ignoreCase: Boolean = false
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that the content description set on the node contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescription(kotlin.String,kotlin.Boolean)` as substring.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should be matched as a substring of the node's content description. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether case should be ignored. Defaults to case sensitive. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsProperties#ContentDescription()` |   |

### GlanceNodeAssertion.assertHasContentDescriptionEqualTo

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasContentDescriptionEqualTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasContentDescriptionEqualTo(
    value: String,
    ignoreCase: Boolean = false
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that the content description set on the node is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasContentDescriptionEqualTo(kotlin.String,kotlin.Boolean)`

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value that should be matched to be equal to the node's content description. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether case should be ignored. Defaults to case sensitive. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsProperties#ContentDescription()` |   |

### GlanceNodeAssertion.assertHasNoClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasNoClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasNoClickAction(

): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that a given node doesn't have a clickable modifier or `onClick` set.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

### GlanceNodeAssertion.assertHasStartActivityClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasStartActivityClickAction) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasStartActivityClickAction(
    componentName: ComponentName,
    parameters: ActionParameters = actionParametersOf()
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that a given node has a clickable set with action that starts an activity.

| Parameters |
|---|---|
| `componentName: https://developer.android.com/reference/android/content/ComponentName.html` | component of the activity that is expected to have been passed in the `actionStartActivity` method call |
| `parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters = actionParametersOf()` | the parameters associated with the action that are expected to have been passed in the `actionStartActivity` method call |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

### GlanceNodeAssertion.assertHasStartActivityClickAction

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasStartActivityClickAction)

```
inline fun <T : Activity> GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasStartActivityClickAction(
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that a given node has a clickable set with action that starts an activity.

| Parameters |
|---|---|
| `<T : https://developer.android.com/reference/android/app/Activity.html>` | class of the activity that is expected to have been passed in the `actionStartActivity` method call |
| `parameters: https://developer.android.com/reference/kotlin/androidx/glance/action/ActionParameters = actionParametersOf()` | the parameters associated with the action that are expected to have been passed in the `actionStartActivity` method call |
| `activityOptions: https://developer.android.com/reference/android/os/Bundle.html? = null` | Additional options built from an `https://developer.android.com/reference/android/app/ActivityOptions.html` that are expected to have been passed in the `actionStartActivity` method call |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

### GlanceNodeAssertion.assertHasTestTag

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasTestTag) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasTestTag(
    testTag: String
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that a given node is annotated by the given test tag.

| Parameters |
|---|---|
| `testTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value to match against the free form string specified in the `testTag` semantics modifier on the Glance composable nodes. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-assertion-error/index.html` | if the matcher does not match or the node can no longer be found. |

### GlanceNodeAssertion.assertHasText

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasText) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasText(
    text: String,
    ignoreCase: Boolean = false
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that text on the given node is a text node and its text contains the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasText(kotlin.String,kotlin.Boolean)` as substring.

| Parameters |
|---|---|
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value to match. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether to perform case insensitive matching |

### GlanceNodeAssertion.assertHasTextEqualTo

Artifact: [androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/UnitTestAssertionExtensions.kt+function:assertHasTextEqualTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
fun GlanceNodeAssertion<MappedNode, GlanceMappedNode>.assertHasTextEqualTo(
    text: String,
    ignoreCase: Boolean = false
): GlanceNodeAssertion<MappedNode, GlanceMappedNode>
```

Asserts that text on the given node is text node and its text is equal to the provided `https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/package-summary#(androidx.glance.testing.GlanceNodeAssertion).assertHasTextEqualTo(kotlin.String,kotlin.Boolean)`.

| Parameters |
|---|---|
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | value to match. |
| `ignoreCase: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | whether to perform case insensitive matching |