Skip to main content

Build

Argent Test UI Flow

argentOfficialCertified

Autonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing navigation, login, manual QA steps, or visible UI changes.

  • New
  • v1.0.4
  • No reviews yet

Capabilities

  • Before testing

    Physical iPhone (kind: "device"): read argent-ios-device-interact…

  • Recovery Pattern

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.4

Before testing

Resolve the device first: call list-devices, use the platform the user named or else prefer a device that is already running, and don't pick a cabled phone without explicit intent. Setup: argent-ios-simulator-setup / argent-android-emulator-setup. The interaction tool names are identical on iOS and Android.

Physical iPhone (kind: "device"): read argent-ios-device-interact first. launch-app before anything; describe fails while the app is backgrounded.

1. Workflow

For implementation tasks that modify visible UI, this workflow also serves as a visual acceptance path.

  1. Baseline screenshot: call screenshot to see the current UI state. For visual regression comparison or UI change verification, capture the baseline at scale: 1.0 with includeImageInContext: false and a run-unique absolute out path before editing whenever feasible.
  2. Find target: get element coordinates from a discovery tool before tapping:
    • App screens (React Native included), in-app modals and system dialogs: describe. Fall back to screenshot only if an overlay is not exposed reliably. When the app raises its own permission dialog, answer it here; that's the real flow under test. To take a prompt out of the flow, use argent-settings-permissions during setup.
  3. Interact: perform the action (gesture-tap, gesture-swipe, keyboard, button, ...); you receive a screenshot and element tree automatically (an unchanged screenshot or identical/slightly changed tree references the earlier Screenshot id / Tree id with a note or -/+ line diff instead of repeating it).
  4. Verify: check the returned screenshot. If it shows a loading/transitional state, block with await-ui-element (expected element visible, or a spinner hidden) rather than a guessed delay (its result carries the new screenshot and element tree), but only with a selector you can trust (text/identifier/role) that the screen is known to have or that you saw in a prior describe; a guessed one just times out. Otherwise use a short fixed wait. Pick evidence by what's being asserted:
    • Visual (layout, spacing, color, typography, image/icon rendering, clipping, overflow, text rendering): prefer screenshot-diff against the step 1 baseline: it surfaces pixel-visible changes the auto-screenshot might miss. Fall back to inspecting the auto-screenshot only when a stable baseline isn't available.
    • Structural (navigation state, element existence, accessibility labels/values, selection, hierarchy, route): verify with describe or debugger-component-tree.
    • Runtime / log / network (console errors, API calls, persistence, timing): verify with debugger-log-registry, debugger-evaluate, or targeted tests. If the debugger reports not_connected, follow its guidance before drawing conclusions. For a specific API request, start capture before the action. Then call await-network-request and finish with network-capture-stop. See Inspect network requests for setup.
    • Mixed: collect evidence for each relevant class.
    • Report the combined verdict: expected behavior, observed behavior, evidence used, and any blocker for requested visual diffing.
  5. Repeat for each step in the flow.

2. Example: login flow

text
1. describe → login screen
2. gesture-tap email field (frame centre from the tree)
3. keyboard { text: "[email protected]" }
4. gesture-tap password field (from the returned tree)
5. run-sequence: keyboard { text: "{{secret:APP_PASSWORD}}" }, gesture-tap Login button
6. await-ui-element → home screen appeared

Credentials: never type plaintext credentials; use a {{secret:<NAME>}} placeholder (keyboard's text parameter lists where it is read from and what to do when a name is missing). Never invent credentials or echo secret values into reports or saved files.

3. Recovery Pattern

  • Screen mid-transition or loading: wait with await-ui-element as in step 4, then re-check. Fall back to a fixed wait + screenshot only when no element reliably marks the transition. Don't poll with repeated screenshots.
  • Tap misses the target: re-run describe and retry once with new coordinates. If it fails twice, stop and report that the element was not found.
  • Permission dialog or modal visible: re-run describe first. Stay in screenshot-driven navigation only while the overlay is not exposed reliably: tap one visible button at a time, verify with the returned screenshot, and switch back to describe as soon as it is dismissed.
  • A saved e2e test fails during e2e-execute replay (as opposed to the live steps above): follow argent-create-e2e's Diagnose a replay failure: classify the failure, inspect the actual screen, repair the smallest justified unit, then replay the full e2e test.

Record for replay: if a tested flow is likely to be repeated, use the argent-create-e2e skill to record it as a .yaml test, so it can be replayed later with a single e2e-execute call.

Skill When to use
argent-device-interact Tool usage for tapping, swiping, typing (iOS + Android)
argent-screenshot-diff Visual regression and before/after screenshot comparison
argent-ios-simulator-setup Booting and connecting an iOS simulator
argent-android-emulator-setup Booting and connecting an Android emulator
argent-react-native-app-workflow Starting the app, Metro, build issues
argent-metro-debugger Console logs, JS evaluation, component inspection
argent-create-e2e Record a test sequence as a replayable e2e test

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from argent

View source →

Frequently asked questions about argent-test-ui-flow

What does the argent-test-ui-flow skill do?

Autonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing navigation, login, manual QA steps, or visible UI changes. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the argent-test-ui-flow skill?

Run `npx @skills-hub-ai/cli install argent-test-ui-flow` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/argent-test-ui-flow/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does argent-test-ui-flow work with?

argent-test-ui-flow runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the argent-test-ui-flow skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use argent-test-ui-flow after installing it?

In Claude Code, type `/argent-test-ui-flow` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the argent-test-ui-flow skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/argent-test-ui-flow)](https://skills-hub.ai/skills/argent-test-ui-flow)
HTML
<a href="https://skills-hub.ai/skills/argent-test-ui-flow"><img src="https://skills-hub.ai/api/badges/skill/argent-test-ui-flow" alt="Install on Skills Hub"></a>

More options in the badge docs.