Function

assertPositionInRootIsEqualTo

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

assertPositionInRootIsEqualTo

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.