---
title: "assertContentDescriptionEquals"
description: "Asserts that the node's content description contains exactly the given [values] and nothing else.

Note that in merged semantics tree there can be a list of content descriptions that got merged
from the child nodes. Typically an accessibility tooling will decide based on its heuristics
which ones to announce.

Throws [AssertionError] if the node's descriptions don't contain all items from [values], or if
the descriptions contain extra items that are not in [values]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsNodeInteraction.assertContentDescriptionEquals(
    vararg values: String
): SemanticsNodeInteraction
```


Asserts that the node's content description contains exactly the given `values` and nothing else.

Note that in merged semantics tree there can be a list of content descriptions that got merged
from the child nodes. Typically an accessibility tooling will decide based on its heuristics
which ones to announce.

Throws `AssertionError` if the node's descriptions don't contain all items from `values`, or if
the descriptions contain extra items that are not in `values`.

#### Parameters

| | |
| --- | --- |
| values | List of values to match (the order does not matter) |




