firehose> #llmops

Agentic UI Testing

Validating a user interface by having an agent operate it like a user — reading the page, clicking, typing, and judging pass/fail against a plain-language user story — instead of (or alongside) scripted deterministic tests (Jest/Vitest/Playwright specs). The unit of work is a user story: a small file with a name, a URL, and a natural-language workflow ("Navigate to the front page, verify at least 10 posts load, click 'More', verify page 2 loads"). A QA sub-agent parses the story into steps, drives a browser via the CLI Tools over MCP Servers Playwright CLI, takes a screenshot at every step (00_<step>.png, 01_<step>.png… under a per-run directory <story-kebab>_<8-char-uuid>/), evaluates PASS/FAIL, and on failure captures the JS console and stops. A slash command (/ui-review) fans stories out across parallel agents and merges their reports (Agentic Workflow Patterns — parallelization).

Why do it agentically rather than with a deterministic framework? The pitch: no test-config sea — you write a URL and a story, not selectors and fixtures; agents "act like a user would," so you can spin up arbitrary new stories at a drop of a dime as the UI changes. The screenshot trail doubles as evidence — a walkable record of exactly what the agent saw and did, giving "a trail of success and a trail of failure" when a workflow breaks. The cost is the usual Workflows vs Agents trade: this is a non-deterministic check (flakier, token- costly per run) traded for near-zero authoring cost and human-like coverage — best leaned on for fast-moving UIs, not as the sole gate on a stable critical path.

Claims


Linked from