Function

assertTopPositionInRootIsEqualTo

Asserts that the layout of this node has the top 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

assertTopPositionInRootIsEqualTo

Common
fun SemanticsNodeInteraction.assertTopPositionInRootIsEqualTo(
    expectedTop: Dp
): SemanticsNodeInteraction

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

Parameters

expectedTop The top (y) position to assert.