Function

assertIsFocused

Asserts that the current semantics node has a focus.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

assertIsFocused

Common
fun SemanticsNodeInteraction.assertIsFocused(): SemanticsNodeInteraction

Asserts that the current semantics node has a focus.

Throws AssertionError if the node is not in the focus or does not defined the property at all.