compose-ui-testing-actions
Installation
SKILL.md
Compose UI Testing — Actions
Source: https://developer.android.com/develop/ui/compose/testing/apis, https://developer.android.com/reference/kotlin/androidx/compose/ui/test/SemanticsNodeInteraction, https://developer.android.com/reference/kotlin/androidx/compose/ui/test/TouchInjectionScope
Purpose
Actions inject simulated user events — clicks, text entry, scrolls, touch gestures, key presses — onto Compose UI elements found by finders.
When to Use
- Simulating taps/clicks on buttons, toggles, or links.
- Entering text into text fields via IME-style injection.
- Scrolling to off-screen items in
LazyColumn/LazyRowbefore interacting with them. - Performing swipe, pinch, long-press, or custom touch gestures.
- Sending key events to focused components.
- Invoking custom semantics actions defined by composables.