Blog /

Webapp Testing for Agent-Built Apps: What to Check First

Webapp testing for apps built with a coding agent: test key journeys first, pick a tool per layer, and check the live app after every deploy.

webapp testingend-to-end testingproduction testing

Test the journeys your users depend on first: sign-up, sign-in, the core action and payment. Automate each one as an end-to-end test your coding agent can run, and after every deploy check those same journeys on the live app with something other than the agent that wrote the change.

A coding agent can report success, a pipeline can go green, and the deployed app can still be broken for every new user. Both of those signals describe code that changed. Neither one describes what a browser shows after sign-in on the live URL.

That gap is the whole problem for a small team. There's no tester, so the evidence has to come from somewhere automatic, and it has to come from outside the thing that made the claim.

Test the Journeys Users Depend On First

Pick the flows a user cannot avoid: creating an account, getting back into it, doing the thing the product exists for, paying for it. Write each one as an end-to-end test your agent can run, and keep each test small enough that a failure points at one flow instead of the whole app.

Why this order rather than coverage? An agent's completion message describes the change it made. It doesn't describe the deployed app. A renamed session cookie, a changed redirect in middleware or a production-only environment variable can leave the login page rendering perfectly while nobody gets past it. The agent tested what it wrote. Nobody tested what shipped.

Volume of tests is not evidence. An agent can generate a lot of unit tests quickly, and that volume reads like safety. In Applause's 2025 survey of over 4,400 software developers, QA professionals and consumers, test case generation was the top AI use case in testing at 66%, while only 33% reported using red teaming (Applause 2025 AI survey). More generated tests raise the amount of asserted coverage. They don't create an independent check that the journey works after deploy.

For a team of one to ten, nobody's job is testing, so the checks have to run without anyone remembering them. What follows is the order of journeys, the tool that fits each layer, how to write tests an agent can run, and how to read the evidence when something fails. For more on what a journey is and why users feel its failures first, see this guide to journey testing.

What should you test in a web app first?

Test in this order, because each journey blocks the ones after it if it breaks.

  1. Sign-up. Create a new account with a fresh email address and confirm the account reaches the signed-in state. Then attempt a second sign-up with the same address and confirm the app refuses it.

  2. Sign-in and sign-out. Sign in with a test account, confirm the page the user lands on, sign out, and confirm a protected page no longer opens. Sign-in sits near the top because a broken login hides every other failure behind it.

  3. The core action. This is the one thing the product exists to do: create a project, send a message, save a document. Confirm the saved result appears after a page reload, not only a success message on screen. A toast proves the request left the browser. The reload proves it landed.

  4. Payments in Stripe test mode. Run checkout with the test cards listed on Stripe's testing page and confirm the account's plan changes once payment completes. Keep live keys out of the test environment.

  5. Permissions between roles. Sign in as each role and confirm one role cannot open another role's pages or records.

  6. What happens after a deploy. Rerun journeys one to five against the live URL. A configuration change, an expired certificate or an embed removed by its owner breaks a journey with no code change behind it.

A hand-drawn illustration showing a user testing a four-step web application sign-up and login flow.

The sequence matters more than the individual checks. Running the same steps in the same order every time is what makes today's failure comparable to yesterday's pass.

Keep journeys three and four short. A checkout test that walks six steps fails for six possible reasons. A checkout test that adds one item, pays with a test card and checks the plan label fails for one.

Which Tool Covers Each Testing Layer

Layer
Unit and integration tests
Tool
Your project's own test runner
Catches
Logic errors in functions, modules and data rules
Misses
Broken pages, sign-in in a real browser and deployment configuration
Best when
Logic that runs without a browser
Layer
Playwright end-to-end tests
Catches
Journeys in a real browser, repeated the same way on each run
Misses
Live-only changes such as external services or settings changed in production
Best when
Deterministic regression checks on every pull request, the better choice in CI
Layer
Agent driving a browser with Playwright MCP
Catches
Flows the agent walks while it works on a change
Misses
Repeatable results, since each run depends on the agent's session
Best when
Exploring a flow during development
Layer
Agent browsing with Claude in Chrome
Catches
Flows the agent clicks through in your own Chrome browser
Misses
Repeatable results across runs; it is not a fixed suite
Best when
Letting the agent check a flow you are already debugging
Layer
Anthropic webapp-testing skill
Catches
Frontend behavior, screenshots and browser logs of a local web app, using Playwright
Misses
The deployed site, since the skill targets local apps
Best when
Testing a local development server before you push
Layer
Separate check of the deployed app
Tool
A check that runs outside the agent's session, on the live URL
Catches
Breaks visible only on the live site, such as authentication, redirects and third-party content
Misses
Code paths that the chosen journeys do not cover
Best when
After every deploy, and for changes that arrive without a code change

Read the table by what each layer can see.

Unit and integration tests never open a browser. They're the cheapest way to pin down pricing rules, date handling and permission logic, and they stay green while the sign-in page returns a 500. Keep them. Don't expect them to catch a broken deploy.

A Playwright suite in CI is the better choice for deterministic regression checks on every pull request. It runs the same steps in the same order each time, so a red result means something changed. Gate the merge on it and treat the suite as the written record of what the app is supposed to do. Model-written tests can encode the same wrong assumption as the code they test, which is why it pays to read what they assert; this piece on how to test AI-generated code covers that habit.

An agent driving a browser suits exploration, not regression. Playwright MCP and Claude in Chrome both let the agent click through a flow while it works on it, which is useful when the flow is still being built. Neither produces a fixed suite, because the run depends on that session. Playwright MCP is open source and runs on your machine, and it is the right pick when the agent needs to see the page it just changed. Our Claude Code browser guide compares the routes.

Anthropic's webapp-testing skill targets local apps. Its own description: a "toolkit for interacting with and testing local web applications using Playwright". That makes it a good fit for a dev server before a push. It doesn't look at the deployed site.

A separate check of the deployed app covers what only exists in production. Authentication against your real identity provider, redirects from your real domain, third-party scripts, embedded media, production settings. If you're weighing agent browser tools, this comparison of Chrome DevTools MCP and Playwright MCP sets out where each one stops.

Working rule: run the suite on every change, then check the deployed app after every release. Two triggers, two different questions.

How to Write Journey Tests the Agent Can Run

A journey test is a list of user actions with an expected, externally visible result after each one. That definition matters more than the framework. Assert the side effects rather than only the page: a browser can render a working shell while the request behind it fails with a 401.

A hand-drawn illustration depicting a workflow for testing web application roles, including customer, support agent, and admin.
  1. One test account per role. Create a customer account, an admin account and anything between, and never point a journey at a personal or owner account. A journey that signs in as an owner passes while real customers hit a permissions error.

  2. Write actions in order, with an expected outcome after each. Sign-in isn't one step with one assertion. It's fill the email, fill the password, submit, land on the dashboard, see the account name. When the fourth step fails, you know where to look.

  3. Assert side effects. Check the status of the sign-in request, the redirect target, and the data still visible after a reload. A success toast proves the form was submitted. It doesn't prove anything was stored.

  4. Keep payment journeys in Stripe test mode. Use the test card numbers Stripe publishes and keep live keys out of the test environment entirely.

  5. Run locally, then in CI. npx playwright test runs the suite on your machine (Playwright docs). Add the same command to continuous integration on every pull request so the check happens without anyone remembering it.

  6. Give the agent the exact command. Ask for the output, not a summary. "Tests pass" from an agent is a claim. The terminal output is the evidence.

For wiring the agent into the browser side of this loop, see running Playwright MCP with Claude Code.

Checking the Live App After Every Deploy

A suite runs before release, usually against a test environment. That leaves a whole class of breakage uncovered. External APIs change, certificates expire, permissions get edited in a dashboard, an embedded video is deleted by its owner, configuration drifts between environments.

Large teams handle this with canary testing, which evaluates new software under production workloads; one paper proposes sequential statistical tests that monitor outcomes continuously while controlling the false detection probability, demonstrated in two case studies at Netflix (the paper on arXiv). The small-team version of that idea is simpler: walk a short list of public and signed-in journeys on the live app after each deployment and on a recurring schedule, and compare the results with the previous pass.

Keep the two triggers apart. A check right after a deploy catches failures that release introduced. A recurring check catches breakage that arrives with no deploy at all. When a check fails, you want to know at once whether the failure follows a release or appeared on unchanged code.

A useful result shows what happened. Which build was checked, the steps walked, where the journey stopped, a screenshot and the failing request. A bare pass or fail flag tells you something happened and nothing about what.

Decide what a check may touch. A check that creates accounts, sends emails or places orders changes the data you're trying to inspect. Decide up front which test accounts and addresses checks use and whether they may create records.

After the fix, walk the same journey again on the live app. A second, independent pass is what proves the deployed fix restored the journey, rather than proving the agent's summary was well written.

Teams planning to widen coverage over time can borrow from this piece on automating regression testing, which stages automation instead of writing all of it at once. For what a deployment check should cover, see software deployment testing.

Reading Screenshots and Network Requests When a Check Fails

Read the screenshot first, then the network requests. The screenshot shows what the user saw. The requests show what the app answered. Most failures need both before you know which one to fix.

Evidence seen
401 or 403 on a signed-in request
Likely cause
Session missing or expired, or the test account's role lacks permission
What to check next
Confirm the test account's role and that the session is sent with the request
Evidence seen
Redirect chain that loops
Likely cause
Redirect rules conflict between the sign-in route and app routes
What to check next
Compare each redirect target with the intended route
Evidence seen
Sign-in request answers 200, page stays on the login screen
Likely cause
The redirect after sign-in never fires
What to check next
Check the redirect logic and the return URL after sign-in
Evidence seen
Page shell renders, core data is missing
Likely cause
Failed or empty response from a data request
What to check next
Check the status and response body of the data request
Evidence seen
Embedded video or widget shows as unavailable
Likely cause
External content removed or blocked
What to check next
Check the embed link and replace or remove the embed
Evidence seen
Timeout with no response
Likely cause
Slow or unavailable dependency
What to check next
Check the dependency's status, then whether the next check repeats the failure

The third row is a real case, published on CheckMyApp's why page: on its own app JobLander, the sign-in request answered 200 OK and created a session, but the user stayed on /login. The request alone said everything worked. Only the page the user was left on showed the journey had failed. The fix was merged 2 h 29 min after the check reported it.

Two lessons come out of that.

A successful request is not a successful journey. Authentication worked. The expected redirect did not happen, and a check that stopped at the 200 would have called the run a pass.

A failing screenshot doesn't say which layer is at fault. The screenshot shows where the user got stuck. The requests separate a broken response from a broken render, and confusing the two sends a fix in the wrong direction.

When a failure is ambiguous, work in this order: confirm the test account's role and that its session is being sent, then read the redirect chain hop by hop, then look at third-party content.

Questions Developers Ask About Webapp Testing

Do I still need a Playwright suite if I check the live app?

Yes. The suite runs the same steps on every pull request and fails before merge, which is the cheapest place to catch a defect. The live check covers a different set of causes: a setting changed in production, an external service that moved, an expired certificate. Neither replaces the other.

Can my coding agent write the tests?

Yes. Then read what it asserted. A passing run only shows the assertions held, so confirm the test checks outcomes such as saved data or a redirect target, not just that a page loaded without an error.

Which journey should I start with if I have one hour?

Sign-in, then sign-up. A broken login blocks every other journey and every other test you might write, including the ones that would tell you what else broke.

Your agent says “done”. We check your app.

After each deploy and every day, we walk the journeys you choose on your live app and tell your agent what passed and what failed, with screenshots.

claude mcp add --scope user --transport http checkmyapp https://checkmyapp.dev/mcp

Free account: $3 of checks, no card · Cursor, Codex and the full install guide

A Separate Check of the Live App

Your agent says "done". That is a claim about the code, not about the app your users get. CheckMyApp checks your deployed app on its own, uses it as a real user, walks the journeys that matter and tells your agent what broke, with the evidence. It connects to Claude Code, Cursor and Codex through MCP (install).

Keep your Playwright suite for every pull request; it is the better tool there. Add the separate check for what only shows up on the live app.

This article was prepared with the help of AI. Found a mistake? Tell us.

More articles