|
| 1 | +# Agent Device Tester |
| 2 | + |
| 3 | +`Agent Device Tester` is a minimal Expo Router fixture app for `agent-device` and `skillgym` experiments. |
| 4 | + |
| 5 | +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. |
| 6 | + |
| 7 | +## Why this app exists |
| 8 | + |
| 9 | +- It gives `agent-device` a stable React Native target that we control. |
| 10 | +- It makes `skillgym` prompts concrete: the agent can inspect real app files instead of answering against an imagined UI. |
| 11 | +- It keeps the number of screens low while still covering roughly 50 practical interaction and verification cases. |
| 12 | + |
| 13 | +## Screens |
| 14 | + |
| 15 | +- `Home`: visible-text checks, dismissible banner, modal open/close, async loading, status badge, switch state |
| 16 | +- `Catalog`: search debounce, filter chips, long-list scroll, favorite toggles, cart updates, drill-in navigation |
| 17 | +- `Product detail`: back navigation, quantity stepper, multiline notes, save action |
| 18 | +- `Checkout form`: required-field validation, fill vs type, checkbox state, choice groups, keyboard dismiss, success summary |
| 19 | +- `Settings`: switch rows, accordion content, loading and error states, retry flow, destructive-confirm modal |
| 20 | + |
| 21 | +Navigation uses Expo Router native bottom tabs, so the tab bar itself is also part of the test surface. |
| 22 | + |
| 23 | +## Coverage map |
| 24 | + |
| 25 | +These are the main case families this app can support without adding more screens: |
| 26 | + |
| 27 | +- app open and close |
| 28 | +- visible text verification with plain `snapshot` |
| 29 | +- interactive discovery with `snapshot -i` |
| 30 | +- `press` on stable buttons, pills, and rows |
| 31 | +- `fill` on single-line and multiline fields |
| 32 | +- `type` after focus for append flows |
| 33 | +- `get text` on headings, badges, summaries, and accordion content |
| 34 | +- `is visible` and `is exists` assertions |
| 35 | +- `wait` for async loading and success states |
| 36 | +- `diff snapshot` after dismissals and submits |
| 37 | +- long-list scrolling and `scrollintoview` |
| 38 | +- selector-based navigation across repeated cards |
| 39 | +- modal open, cancel, and confirm flows |
| 40 | +- switch and checkbox state changes |
| 41 | +- validation-error and recovery loops |
| 42 | +- retryable error banners |
| 43 | +- cart counters and quantity changes |
| 44 | +- screenshot and recording proof capture |
| 45 | + |
| 46 | +## Run locally |
| 47 | + |
| 48 | +From the repo root: |
| 49 | + |
| 50 | +```bash |
| 51 | +pnpm test-app:install |
| 52 | +pnpm test-app:ios |
| 53 | +``` |
| 54 | + |
| 55 | +Or on Android: |
| 56 | + |
| 57 | +```bash |
| 58 | +pnpm test-app:install |
| 59 | +pnpm test-app:android |
| 60 | +``` |
| 61 | + |
| 62 | +If you prefer to work from inside the app folder: |
| 63 | + |
| 64 | +```bash |
| 65 | +cd examples/test-app |
| 66 | +pnpm install --ignore-workspace --lockfile=false |
| 67 | +pnpm ios |
| 68 | +``` |
| 69 | + |
| 70 | +Or on Android: |
| 71 | + |
| 72 | +```bash |
| 73 | +cd examples/test-app |
| 74 | +pnpm install --ignore-workspace --lockfile=false |
| 75 | +pnpm android |
| 76 | +``` |
| 77 | + |
| 78 | +Once the app is running, use `agent-device` against `Agent Device Tester` like any other target app. |
0 commit comments