invokeGlobalAssertions

Function

Common

Deprecated This API has been removed and its intended usage to run accessibility checks can now be done via SemanticsNodeInteraction.tryPerformAccessibilityChecks()

@ExperimentalTestApi
fun SemanticsNodeInteraction.invokeGlobalAssertions(): SemanticsNodeInteraction

Executes all of the assertions registered by addGlobalAssertion. This may be useful in a custom test action.

Returns

the SemanticsNodeInteraction that is the receiver of this method
Common

Deprecated This API has been removed and its intended usage to run accessibility checks can now be done via SemanticsNodeInteraction.tryPerformAccessibilityChecks()

@ExperimentalTestApi
fun SemanticsNodeInteractionCollection.invokeGlobalAssertions():
    SemanticsNodeInteractionCollection

Executes all of the assertions registered by addGlobalAssertion, each of which will receive the first node of this collection. This may be useful in a custom test action.

Returns

the SemanticsNodeInteractionCollection that is the receiver of this method