Browser QA and regression checking
Browser QA Stack
Reference workflow for browser regression work: Playwright runs deterministic checks, the Playwright MCP server supports agent-led failure investigation with artifacts.
The job
- Re-run critical browser flows after changes and surface regressions
- Investigate failures from traces and screenshots, with a written report for human confirmation
Expected output: Repeatable pass/fail results with traces and screenshots, plus a failure report that a reviewer can verify in minutes.
Components, and why each one is here
A browser automation framework that drives Chromium, Firefox, and WebKit with a single API for tests, scripts, and AI agents.
Why this component: Deterministic scripts form the lowest-cost regression net. The same project provides the agent access layer.
Microsoft MCP server that automates a real browser through Playwright from accessibility snapshots, without a vision model.
Why this component: Shares the Playwright project model with the test library. Investigation and test code use the same locators and concepts.
Python MCP server that exposes a fixed set of Git operations on a local repository.
Why this component: Ties a failure to a specific change. Without history, the report is speculation.
Sequence
Express revenue-critical flows as independent Playwright tests using role and label locators.
Run the suite on every material change. Persist traces and screenshots on failure.
Open the failing page through Playwright MCP and record a specific claim about the breakage.
Read recent commits through the Git MCP server and correlate the failure with a change, or state that no correlation was found.
Confirm bug versus test rot before filing. Route the finding accordingly.
Prerequisites
- Node.js for Playwright and the MCP server
- The app running locally or on staging
- An MCP-capable coding agent for investigation
Credentials
- A test account for flows behind a login, stored outside the repo
Human checkpoints
- Before an agent-filed issue reaches the team. Stale selectors and application bugs produce identical failure signatures at first glance.
- When product behavior changes by design. Record the change and update the test. Do not let retries mask an intended change.
When it breaks
Selector rot after a redesign
Prefer role and label locators. Have the agent propose locator updates for human approval.
Flaky timing failures
Read the Playwright trace first. Auto-waiting covers most cases. The remainder usually indicates a race condition worth isolating.
Agent cannot reproduce the failure
Mark the result unconfirmed. Retain artifacts, rerun the script, and escalate with evidence attached.
Swapping components
Puppeteer with the Chrome DevTools MCP server provides a Chrome-first variant with the same workflow shape.
Cost shape and freshness
Playwright and both MCP servers are free and open source. Costs are CI minutes and model tokens spent during failure investigation.
Every component links to its published profile, checked 2026-10-07. A stack is a reference workflow, not a benchmark result. Run it on a small job first and keep the checkpoints in place. Send corrections through the contact page. Back to the stack index.