mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
Agent Device Tester
Agent Device Tester is a minimal Expo Router fixture app for agent-device and skillgym experiments.
It is intentionally small, but each surface is dense with durable accessibility targets so a few screens cover a large share of the workflows we care about.
Why this app exists
- It gives
agent-devicea stable React Native target that we control. - It makes
skillgymprompts concrete: the agent can inspect real app files instead of answering against an imagined UI. - It keeps the number of screens low while still covering roughly 50 practical interaction and verification cases.
Screens
Home: visible-text checks, dismissible banner, modal open/close, async loading, status badge, switch stateCatalog: search debounce, filter chips, long-list scroll, favorite toggles, cart updates, drill-in navigationProduct detail: back navigation, quantity stepper, multiline notes, save actionCheckout form: required-field validation, fill vs type, checkbox state, choice groups, keyboard dismiss, success summarySettings: switch rows, accordion content, loading and error states, retry flow, destructive-confirm modal
Navigation uses Expo Router native bottom tabs, so the tab bar itself is also part of the test surface.
Coverage map
These are the main case families this app can support without adding more screens:
- app open and close
- visible text verification with plain
snapshot - interactive discovery with
snapshot -i presson stable buttons, pills, and rowsfillon single-line and multiline fieldstypeafter focus for append flowsget texton headings, badges, summaries, and accordion contentis visibleandis existsassertionswaitfor async loading and success statesdiff snapshotafter dismissals and submits- long-list scrolling and
scrollintoview - selector-based navigation across repeated cards
- modal open, cancel, and confirm flows
- switch and checkbox state changes
- validation-error and recovery loops
- retryable error banners
- cart counters and quantity changes
- screenshot and recording proof capture
Run locally
From the repo root:
pnpm test-app:install
pnpm test-app:ios
Or on Android:
pnpm test-app:install
pnpm test-app:android
If you prefer to work from inside the app folder:
cd examples/test-app
pnpm install --ignore-workspace
pnpm ios
Or on Android:
cd examples/test-app
pnpm install --ignore-workspace
pnpm android
Once the app is running, use agent-device against Agent Device Tester like any other target app.