---
title: "hasTestTag"
description: "Returns whether the node is annotated by the given test tag."
type: "function"
---

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


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


```kotlin
fun hasTestTag(testTag: String): SemanticsMatcher
```


Returns whether the node is annotated by the given test tag.

#### Parameters

| | |
| --- | --- |
| testTag | Value to match. |




