Skip to content

test-feature

Test an already-implemented feature on the running simulator or emulator. Verifies UI rendering, user flows, and internal state, then generates a persistent Maestro test file for CI.

/rn-dev-agent:test-feature <feature-description>
/rn-dev-agent:test-feature shopping cart -- add items, see badge, checkout
/rn-dev-agent:test-feature user authentication -- login, persist session, logout
/rn-dev-agent:test-feature profile screen -- edit name, upload photo, save
StepWhat happens
1Environment check — confirm Metro running, CDP connected, no RedBox
2Understand the feature — read implementation files, find testIDs, routes, store slices
3Plan the test — write test steps and expected outcomes before executing
4Navigate to start — use deep links or navigation to reach the starting screen
5Execute and verify — for each step: act, wait, verify UI via cdp_component_tree, verify data via cdp_store_state
6Edge cases — test empty state, error state, back navigation, rapid interactions
7Generate persistent test — write flows/<feature-name>.yaml Maestro flow for CI
  • Pass/fail summary with evidence (screenshots, component tree snapshots, store state)
  • A flows/<feature-name>.yaml Maestro flow file written to the repo
  • After implementing a feature manually and wanting to verify it works
  • To generate Maestro test files for CI without running the full 8-phase pipeline
  • To test edge cases on an existing feature
  • iOS Simulator or Android Emulator running with the app loaded
  • Metro dev server running
  • Maestro or maestro-runner installed
  • For Zustand apps: if (__DEV__) global.__ZUSTAND_STORES__ = { ... } in app entry