Guide
Build a testing agent with Claude Code and Playwright
One folder, one command: Claude explores a site, plans its tests, runs them with Playwright, and delivers a report backed by proof. 15 minutes to set up.
Create your tests
Run them
Keep them up to date
By stage
Who it’s for
AI helps you write tests, repair them, check what a customer actually sees, and explore a site. It does not replace human judgment.
AI changes four things in automated testing: it helps you write tests, repair them when the site changes, check what a customer really sees, and explore a site to find what nobody planned for. It doesn’t replace human judgment about what matters, or a reliable replay of your user journeys. The “100% autonomous” test, with no one to judge the results, is still a promise.
AI writes the first draft, not the final version. From a user story, a page, or even a video of the journey, an AI assistant suggests the cases that must work, the fields to check, and the error cases. The work shifts from “writing” to “reviewing and sorting.”
For example, the Product Owner wrote the user story in Jira, and Rovo, Atlassian’s AI assistant, turns it into test cases on the ticket. ChatGPT, Claude, or Gemini can do the same, as long as you give them the context of the site.
AI is excellent at systematic variations: it never forgets the empty ZIP code, the negative quantity, or the expired promo code. It is less good at knowing what matters: which journey drives your revenue, which pricing rule is tricky, which bug would cost a fortune on a Friday night. That sorting is still your job.
AI repairs a test by understanding the intent of the step (“click the login button”) rather than looking for an exact ID. That’s self-healing.
Monday, 8:30 a.m.: 37 tests are red. The site has no bug; a developer simply renamed an ID, and half the tests can no longer find the button. Without AI, that’s a morning of maintenance. With self-healing:
#login-button button.Self-healing has one serious limit: it must never repair a real bug. If the “Add to cart” button disappeared because the product is out of stock, the AI must not click somewhere else to make everything green. The goal is not a green dashboard; it’s the truth about the site. The possible approaches, from the most guided to the most autonomous, are covered in Self-healing: how AI repairs a broken test. On the code side, the Playwright MCP server already lets an AI assistant open the page, understand why a test fails, and fix it.
AI makes checks less binary. A classic check requires exact text: “Welcome, Alessandro!” If the site shows “Hi, Alessandro!”, the test fails, even though no customer is bothered. With AI, a check can be:
This use case clearly reduces false alarms, and that is what makes tests credible: a team that gets too many useless alerts ends up ignoring them. Flexibility has a price: a check that is too tolerant lets a real problem through. So write precisely what matters (“the cart total is shown and correct”), rather than “the page looks fine.”
Not completely, and not anytime soon. What already exists: an AI agent that browses the site like a visitor, takes paths nobody planned, and reports what looks abnormal (that’s exploratory testing). What is making progress: tests created from real visitor journeys or from bugs found in production, and choosing which tests to run first based on what changed in the code.
What is still mostly a promise, as of fall 2026:
The practical rule: give AI the repetitive work, and keep humans on the critical journeys.
No: AI replaces part of the execution, not the judgment. Just as calculators didn’t get rid of accountants, AI shifts the tester’s work: fewer clicks and repairs, more choices and supervision. In an agency, the project manager is often the one who tests; they go from manual QA to reviewing what the tool found.
| AI does well | Humans do better |
|---|---|
| Produce test variations without getting bored | Know which bug is expensive, and for whom |
| Read logs and spot what repeats | Judge whether a generated test is relevant |
| Repair tests broken by a detail | Think like a customer: does the journey make sense? |
| Run day and night, weekends included | Explain a bug, defend a priority, train people |
| Never forget a standard case | Imagine the unlikely case that will break in production |
The concerns are legitimate. AI sometimes gets it wrong: it can invent an off-topic test case or report a bug that doesn’t exist. It also requires new habits, like describing clearly what you expect from it. But people who know how to supervise it are worth more than before: AI won’t make the job disappear; it will leave behind the people who refuse to learn how to use it.
Start with a single use case, the one that solves your biggest problem, and measure before going further.
No need to wait for the perfect tool: what exists today is enough to save time. To get started with free or nearly free tools, read How to start testing with AI on a small budget.
Qanary, no-code automated testing for e-commerce, puts AI where it helps: creating tests (by exploring your site, or from a code change, Hotjar, or PostHog), visually checking screens, and repairing tests. Replaying the journeys, on the other hand, happens without AI: it stays stable, fast, and inexpensive. Self-healing is silent when a fragile selector changes, and visible when your site really changes, so a real bug never passes for a simple repair.
Want to see Qanary test your site? with Julia or Antoine.
Guide
One folder, one command: Claude explores a site, plans its tests, runs them with Playwright, and delivers a report backed by proof. 15 minutes to set up.
Talk
Self-healing repairs a test when the site changes. Three approaches with AI, from the most guided to the most autonomous, and their limits (ParisTestConf 2026).
Talk
Define your critical journeys, document them in a spreadsheet, and move from reactive quality to quality you control: our talk at WordCamp Nice 2026.
Bugs only. Promise.
30 minutes, live on your site
Shall we look at your site together?