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


<a id='references'></a>


<h2 id="assertpositioninrootisequalto-expectedleft-expectedtop">assertPositionInRootIsEqualTo</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsNodeInteraction.assertPositionInRootIsEqualTo(
    expectedLeft: Dp,
    expectedTop: Dp,
): SemanticsNodeInteraction
```


Asserts that the layout of this node has position in the root composable that is equal to the
given position.

#### Parameters

| | |
| --- | --- |
| expectedLeft | The left (x) position to assert. |
| expectedTop | The top (y) position to assert. |