Getting started
Define scenarios in YAML files and run E2E tests locally or in GitHub Actions without AI.
What is a YAML scenario
A format supported by @ohah/react-native-mcp-server/test: one file with platform, config, and setup / steps / teardown.
MCP tools (tap, assertText, waitForText, etc.) are run as scenario steps.
Basic structure
- config: platform, timeout, bundleId
- setup: launch app, wait for elements, etc.
- steps: tap, input, assertions, screenshots
- teardown: e.g. terminate app
Common steps
Use the app's testID as #testID for the selector.
Example: tap button and assert count
How to run
- Build the MCP server:
bun run build - Have the app running or use
launchin the scenariosetup - Run the test runner, e.g.:
Or use the run script of @ohah/react-native-mcp-server/test with your YAML file.
See E2E YAML Reference for full syntax, E2E Dashboard for viewing results, and E2E on GitHub Actions for CI.