Agents Lookup

Use cases / Software development

Write end-to-end browser tests from a test plan

An agent explores your app in a real browser, writes a test plan, and turns it into Playwright tests you review and run in CI.

DifficultyIntermediate
Setup timeHalf a day
CategorySoftware development

The use case

Teams know they should have end-to-end coverage for key flows but writing browser tests is slow. Playwright ships test agents: a planner that explores the running app and writes a plan in Markdown, and a generator that turns the plan into Playwright test files, checking selectors against the live page. The Playwright MCP server lets other agents drive a browser the same way. A QA engineer or developer reviews the plan first, cuts scenarios that do not matter, then reviews the generated tests for stable selectors and real assertions before adding them to CI.

Example workflow

  1. Run the app locally or in a test environment
  2. Ask the planner agent to explore a flow and write a plan
  3. Edit the plan to keep the scenarios that matter
  4. Generate Playwright tests from the plan
  5. Review assertions and selectors, then add to CI

Tools

Risks and guardrails

Sources

Written by Agents Lookup. Credits and official pages for the tools this use case names: