assertPositionInRootIsEqualTo

Function

Common
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

expectedLeftThe left (x) position to assert.
expectedTopThe top (y) position to assert.