AI end-to-end testing: three ways it works and what each costs
AI end-to-end testing can mean an AI that writes test code, an agent that clicks through every run, or a hosted tester. How each works, what it costs, where it breaks.

Read this first#
Testsy publishes this post, and Testsy is one of the options in it. The numbers about other approaches come from the pages linked next to them, read on 30 November 2026. The biggest public measurement so far is Slack's engineering write-up from June 2026, so most numbers below are theirs.
The short answer#
An end-to-end test walks a whole journey as a user would: sign up, confirm the email, reach the dashboard. "AI end-to-end testing" means a language model takes part in that test. It can take part in three different places, and they behave very differently:
- The AI writes the test code, and the code runs as a normal test from then on.
- An AI agent drives the browser on every run, deciding each click as it goes.
- A hosted tester takes a plain-language test, explores the journey once, replays what it learned on later runs, and gives a verdict with its evidence.
The questions that separate them are the same three every time: who fixes the test when the page changes, what one run costs, and what you get back when it fails.
1. The AI writes the test code#
You describe the journey; the model writes a Playwright or Cypress file; your CI runs that file.
The clearest example is Playwright's own test agents: a planner explores the app and writes a Markdown test plan, a generator turns the plan into Playwright test files, and a healer replays a failing test, suggests a fix such as a new locator or a longer wait, and re-runs it. They work from VS Code, Claude Code, Codex and OpenCode.
What is good: once written, the test is ordinary code. It is fast, it costs nothing per run beyond CI minutes, and it goes through code review like the rest of your repository.
What breaks it: the model writes the test once, from what it saw that day. In Slack's measurements, generated tests were the fastest option (about 3 minutes on average, and 32 to 45 seconds of actual test execution), but on their harder flow (finding a message through search) about 48% of runs failed, often after getting 70 to 80% of the way through. Someone still owns the code. Also read what the healer did: Playwright's docs say it can mark a test as skipped if it decides the feature itself is broken, and a skipped test is easy to miss.
2. An agent drives the browser on every run#
Here there is no test file. On each run, an agent (for example Claude Code with Playwright MCP) reads the page, picks the next action and keeps going until it believes the goal is reached.
What is good: it adapts. Slack found that only about 20% of runs took exactly the same sequence of actions, and the MCP agent still failed on 0% of the simple flow and about 12% of the search flow. A changed button label does not stop it.
What breaks it: cost and time. Slack's agent runs took 5 to 11 minutes and cost "typically $15–30 per execution", mostly because the whole page context is sent to the model again on every turn. Their conclusion: agent-driven runs suit "targeted debugging or exploratory testing" better than high-frequency CI. There is a second problem the numbers do not show: the agent that ran the test also decides whether it passed. If it is wrong, it is wrong with confidence. We wrote about that in Making an AI tester prove its verdicts.
3. A hosted tester that learns the path#
The third way sits between the two. You write the test as a sentence, for example "sign up with a new email, open the confirmation email, follow the link and check the dashboard greets you by name". The tester explores it the first time, keeps the path that passed, and replays that path on later runs. When the page changes and the replay no longer fits, it explores again from that point and learns the new path.
That is how Testsy works (How a run works), and it is the same idea as the record-and-replay caches some open frameworks now ship. The model is needed on the first run and when something changes, not on every click of every run.
What is good: nobody maintains test code, repeat runs are quick, and the price is per run rather than per token. On Testsy's Starter plan one run costs $0.49 (100 runs for $49 a month), however long it takes; runs the site blocks, and runs that fail on our side, are not counted.
What breaks it: you trade control for convenience. You cannot stub a request or seed a database from inside the test the way you can in code. If you need every test in code review, way 1 fits better.
Side by side#
| AI writes the code | Agent on every run | Hosted tester that learns the path | |
|---|---|---|---|
| Who writes the test | The model, once; you own the code | Nobody; the goal is a prompt | You, in one sentence |
| Who fixes it when the page changes | You, or a healer you review | The agent adapts each run | The tester re-explores and learns the new path |
| Time per run | Fastest (seconds to run) | 5-11 minutes in Slack's tests | Minutes the first time, quicker on replays |
| Cost per run | CI minutes | $15-30 in Slack's tests | $0.49 on Testsy Starter |
| What you get on a failure | A stack trace and a screenshot | Whatever the agent reports | A verdict, the video, the screen at each step and the value each check was decided on |
The question every approach has to answer: why did it pass?#
A green result is only worth what it rests on. Take this public run: the page said "Export started: report.csv" and a file named report.csv arrived, so a quick look says the export works. The file inside was an HTML error page. The run failed because the check was about the file's contents, and the run shows the value it read.
Whatever you choose, ask it three things:
- Does each check record what it saw? "Total is $36.00" is evidence; "checkout works" is an opinion.
- Can it say "I could not tell"? Testsy has four verdicts: Passed, Failed, Blocked (the site stopped the tester) and Inconclusive (it could not decide, with the reason). A tool that only knows pass and fail will sometimes guess.
- Can someone else check the result without re-running it? A video and a step-by-step replay let a teammate or a client see what happened.
How to choose#
- You have engineers and want tests in the repository: let the AI write Playwright code, and review it like any other code. Read every healed or skipped test.
- You are debugging one flow or exploring a new feature: an agent on every run is fine; it is the cost and speed that rule it out for every commit.
- You ship often, nobody owns test code, or you test iPhone, iPad and Android apps as well as a website: a hosted tester, compared on what a failed run gives you.
Many teams end up with two: code for the few flows engineers care about most, and plain-language tests for everything a user would notice. Slack's own advice is that agents sit on top of deterministic tests, not instead of them.
What none of them checks#
Security, load and your code itself are outside every approach above: they test what a user can see and do. What an AI tester cannot check for you lists what still needs a person.
Questions#
Is AI end-to-end testing reliable enough for CI? AI-written code is, once it passes, because it is ordinary code. An agent deciding every click was not, in Slack's tests: up to 20% of runs failed on a harder flow, at $15-30 each. A tester that replays a learned path sits closer to the first.
Does it replace Playwright or Cypress? No. Playwright's test agents produce Playwright tests. Hosted testers cover journeys you would not otherwise write tests for. See Cypress alternatives for the full set of options.
Can AI end-to-end testing cover mobile apps? Yes, with tools that run app builds. Testsy runs the same kind of plain-language test on iPhone, iPad and Android; Appium alternatives compares the mobile options.
What does a run cost? From CI minutes (generated code) to about $15-30 (an agent on every run, in Slack's measurements). On Testsy, $0.49 a run on Starter.
Try it on your own journey#
Pick the one journey that would cost the most if it broke, such as sign-up with an email code or checkout with a discount, write it as one sentence and run it. Get your free 10 tests, no card needed.
Filed underWebVerdicts and proofCI, schedules and agentsChoosing a tool