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

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