assertReadingOrder

fun assertReadingOrder(first: SemanticsNodeInteraction, second: SemanticsNodeInteraction, direction: ReadingDirection, rowTolerance: Float = ReadingOrder.DEFAULT_ROW_TOLERANCE)(source)

Asserts that second is read after first on the same row in direction.

Parameters

first

The node expected earlier.

second

The node expected later.

direction

The row's reading direction.

rowTolerance

The exclusive vertical-center tolerance, in pixels.

Throws

with both frames when the order does not hold.