Steps Reference

The E2E YAML runner supports 32 step types across 7 categories. Each step performs a single action — tap, assert, wait, navigate, etc.

Step syntax

Use exactly one key per step entry. Most steps take an object of parameters; a few (wait, launch, terminate, clearState) take a single scalar value.

# Object-style
- tap:
    selector: '#submit-button'

# Scalar-style
- wait: 500

Selector syntax

Steps that accept a selector field use the same query syntax as MCP tools:

PatternExampleDescription
testID#submit-btnMatch by testID prop
TypeTextMatch by component type
Text:text("Hello")Match by text content
Attribute[accessibilityLabel="Close"]Match by prop value
displayName:display-name("MyComponent")Match by display name
Index:nth-of-type(2)Match Nth element of type
Capability:has-pressPressable elements
HierarchyScrollView > View > TextDirect child or descendant
OR#btn-a, #btn-bMatch either selector

Categories

CategoryStepsDescription
Interaction8Tap, swipe, type, long press, double tap, scroll
Assertions5Verify text, visibility, element count, value
Waits4Wait for text, visibility, or fixed delay
Navigation & Device7Press button, back, home, deep link, location, reset
App Lifecycle2Launch and terminate apps
Screenshots2Capture and compare screenshots
Utilities4Copy/paste text, run JS, add media