---
title: "assertContentDescriptionContains"
description: "Asserts that the node's content description contains the given [value].

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 value does not contain `value`, or if the node has no value"
type: "function"
---

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


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


```kotlin
fun SemanticsNodeInteraction.assertContentDescriptionContains(
    value: String,
    substring: Boolean = false,
    ignoreCase: Boolean = false,
): SemanticsNodeInteraction
```


Asserts that the node's content description contains the given `value`.

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 value does not contain `value`, or if the node has no value

#### Parameters

| | |
| --- | --- |
| value | Value to match as one of the items in the list of content descriptions. |
| substring | Whether this can be satisfied as a substring match of an item in the list of descriptions. |
| ignoreCase | Whether case should be ignored. |




