When would you use Playwright MCP for exploration, and when would you still write deterministic tests?
Answer
Use an agent-driven browser tool for discovery, reproducing unfamiliar flows, gathering page structure and proposing coverage. Convert stable, release-critical behavior into reviewed Playwright tests with explicit setup, locators and assertions so CI is reproducible and cheap. Keep exploratory artifacts, network evidence and discovered risks, but do not make a probabilistic agent loop the only release oracle.
Strong answer includes
- separates exploration from deterministic regression gates
- turns discoveries into reviewed maintainable tests
- retains evidence without relying on agent narration
Practical example
An agent using Playwright MCP explores a newly built refund flow and reports back that it completed successfully in three different ways; rather than trusting that narration as proof, the team asks the agent to save the network trace and DOM snapshots, then hand-writes a deterministic Playwright test around the one flow the product team actually wants to guarantee in CI.