androidx.compose.ui.test
Interfaces
IdlingResource |
Represents a resource of an application under test which can cause asynchronous background work to happen during test execution (e. |
MainTestClock |
Clock that drives frames and recompositions in compose tests. |
SemanticsNodeInteractionsProvider |
Provides the main entry point into testing. |
TestOwner |
Provides necessary services to facilitate testing. |
Classes
GestureScope |
The receiver scope for injecting gestures on the semanticsNode identified by the corresponding SemanticsNodeInteraction. |
SelectionResult |
Result of SemanticsSelector projection. |
SemanticsMatcher |
Wrapper for semantics matcher lambdas that allows to build string explaining to the developer what conditions were being tested. |
SemanticsNodeInteraction |
Represents a semantics node and the path to fetch it from the semantics tree. |
SemanticsNodeInteractionCollection |
Represents a collection of semantics nodes and the path to fetch them from the semantics tree. |
SemanticsSelector |
Projects the given set of nodes to a new set of nodes. |
TestContext | |
TestMonotonicFrameClock |
A MonotonicFrameClock with a time source controlled by a |
Exceptions
ComposeTimeoutException |
Thrown in cases where Compose test can't satisfy a condition in a defined time limit. |
Annotations
ExperimentalTestApi | |
InternalTestApi |
Top-level functions summary
TestMonotonicFrameClock |
TestMonotonicFrameClock(coroutineScope: CoroutineScope, frameDelayNanos: Long = DefaultFrameDelay) Construct a TestMonotonicFrameClock for coroutineScope, obtaining the DelayController from the scope's context. |
TestContext |
createTestContext(owner: TestOwner) |
SemanticsMatcher |
hasAnyAncestor(matcher: SemanticsMatcher) Returns whether the node has at least one ancestor that satisfies the given matcher. |
SemanticsMatcher |
hasAnyChild(matcher: SemanticsMatcher) Returns whether the node has at least one child that satisfies the given matcher. |
SemanticsMatcher |
hasAnyDescendant(matcher: SemanticsMatcher) Returns whether the node has at least one descendant that satisfies the given matcher. |
SemanticsMatcher |
hasAnySibling(matcher: SemanticsMatcher) Returns whether the node has at least one sibling that satisfies the given matcher. |
SemanticsMatcher |
Return whether the node has a semantics click action defined. |
SemanticsMatcher |
hasContentDescription(label: String, substring: Boolean = false, ignoreCase: Boolean = false) Returns whether the node's label matches exactly to the given text. |
SemanticsMatcher |
hasImeAction(actionType: ImeAction) Returns whether the node defines the given IME action. |
SemanticsMatcher |
Return whether the node has no semantics click action defined. |
SemanticsMatcher |
Return whether the node has no semantics scrollable action defined. |
SemanticsMatcher |
hasParent(matcher: SemanticsMatcher) Returns whether the node's parent satisfies the given matcher. |
SemanticsMatcher |
hasProgressBarRangeInfo(rangeInfo: ProgressBarRangeInfo) Returns whether the node's range info matches exactly to the given accessibility range info. |
SemanticsMatcher |
Return whether the node has a semantics scrollable action defined. |
SemanticsMatcher |
Returns whether the node defines semantics action to set text to it. |
SemanticsMatcher |
hasStateDescription(value: String) Returns whether the node's value matches exactly to the given accessibility value. |
SemanticsMatcher |
hasTestTag(testTag: String) Returns whether the node is annotated by the given test tag. |
SemanticsMatcher |
Returns whether the node's text matches exactly to the given text. |
SemanticsMatcher |
isDialog() Returns whether the node is a dialog. |
SemanticsMatcher |
Returns whether the node is enabled. |
SemanticsMatcher |
Return whether the node is able to receive focus |
SemanticsMatcher |
Returns whether the node is focused. |
SemanticsMatcher |
Returns whether the node is marked as an accessibility header. |
SemanticsMatcher |
Returns whether the node is not enabled. |
SemanticsMatcher |
Return whether the node is not able to receive focus. |
SemanticsMatcher |
Returns whether the node is not focused. |
SemanticsMatcher |
Returns whether the node is not selected. |
SemanticsMatcher |
isOff() Returns whether the node is not toggled. |
SemanticsMatcher |
isOn() Returns whether the node is toggled. |