Source: https://everyrole.dev/blog/test-vibe-coded-app

# How to test a vibe-coded app before users do

How to test a vibe-coded app: from the outside, as each kind of user, on the running app. The agent says what changed, and something else has to prove it works.

Nov 22, 2026  7 min read  by the EveryRole team

Here is how to test a vibe-coded app: from the outside, on the running app, as each kind of user. Write down the handful of journeys that matter. After every change the agent makes, walk the ones it touched and look at the result. The agent can tell you what it changed. It can’t be the only one who says the change works.

We build our own product with coding agents, so this is a routine we follow, not a warning from the sidelines. The agents are fast. What they get wrong is a particular kind of thing, and it is a kind you only see by using the app.

![Four steps: the agent describes the change in a user's words, the journeys it touches are picked, they are walked on the running app from the outside, and each ends on a result compared with an answer a person approved](https://everyrole.dev/s/blog/test-vibe-coded-app/change-journeys-proof.webp)

The agent can do the first two steps. The last two need someone, or something, that didn’t write the code.

## Why the agent’s own tests aren’t enough

Ask a coding agent to test its work and it will, gladly. It writes unit tests, runs them, and reports that everything passes. Keep those tests. They are cheap and they catch real slips. They share a weakness, though, and there are four ways it shows.

**They test what the agent believes the code does.** The same understanding wrote the feature and the test. If the agent misread what you wanted, the test agrees with the code and both are wrong together.

**A failing test can be “fixed” from either side.** When a test fails, the quickest route to green is sometimes to change the test. An agent told to “make the tests pass” may take it. You asked for a working app and received a passing suite.

**“Done” means the code was written.** The build compiles, the page renders in the agent’s head. Whether the button on the deployed page does anything is a separate fact that nobody has looked at.

**The damage is somewhere else.** You asked for a change to the sign-up form. The agent also tidied a shared helper, and now the settings page, three screens away, saves nothing. Nothing in the conversation mentions settings, so nobody checks it.

None of this is special to AI. People do all four. An agent just does them faster and with more confidence.

## Test AI-generated code from the outside

The fix is to test the thing your users get, which is the app, in a browser, at its address. A test from the outside doesn’t know how the code is written, so it can’t share the code’s misunderstandings.

**1. Write the journeys down, in plain words.** Five to eight lines, in a file in the repository:

- A visitor can sign up and reach the first screen.
- A member can log in and out.
- An editor can create an item, and it is in the list after a reload.
- A viewer can see items and can’t create one.
- Each plan’s button reaches the payment step for that plan.

This is your specification. It is short enough to read on every change, and it belongs to you: tell the agent it may not edit it.

**2. Give each line an expected result** that two people would agree on. “The item’s page opens with its name” is one. “Works” isn’t. We wrote up the method in [how to write test cases](https://everyrole.dev/blog/how-to-write-test-cases).

**3. Make the agent say what changed, in a user’s words.** Not the diff. “Sign-up now asks for a company name. The welcome email is sent after confirmation, where it used to go out before.” From that you can tell which journeys are touched.

**4. Walk the touched journeys, plus the ones that cost money.** On the deployed preview, not on the agent’s machine. Sign-up and payment get walked on every change regardless, because a break there is expensive and silent. The set-up for previews is in our post on [E2E tests on preview deployments](https://everyrole.dev/blog/e2e-tests-preview-deployments).

**5. Look at the result yourself, the first time.** After that, a comparison with the answer you approved can run without you. A second AI model looking at a screenshot and saying “looks right” is the same problem again. We wrote about where that line sits in what AI should never decide.

## The gaps beside the happy path

A demo shows the happy path: good input, the owner’s account, a desktop screen. That is the path the agent built along and the one you watched. The gaps are beside it, and they are the same few each time we look.

**Checks that exist only in the browser.** The form refuses a bad value. The server behind it accepts anything. On our own practice app, a team size field takes only numbers in the browser, and the server saves the word `lots` if you send it directly. We showed how to find this in input validation testing.

**Permissions enforced by hiding the link.** The page isn’t in the other user’s menu, so it looks protected. Type its address and it opens.

![The practice app with its "leaky" switch on. Signed in as the other editor, the address /items/1 shows the first editor's item, its note, and Edit and Delete controls](https://everyrole.dev/s/blog/test-vibe-coded-app/open-by-its-address.webp)

Our practice app with a deliberate bug switched on. This item isn’t in the other editor’s list. Its address opens anyway.

That is our practice app with a bug we switch on to test our own product. The other editor’s list says “No items yet”. The item’s address still opens, with Edit and Delete. Nothing looks wrong unless you try as the wrong person, which is why you test [as every kind of user](https://everyrole.dev/blog/role-based-testing).

**Errors nobody triggered.** Send the main form empty. Send it wrong, then right. Press the button twice. These take a minute by hand, and the empty form alone can find a server error page that no demo showed.

**“Saved” without saving.** The message appears and the list is unchanged after a reload. Check the place where the result lives, never the message. A check on the message is how [tests pass while the app is broken](https://everyrole.dev/blog/hollow-passes).

## How to test a vibe-coded app when the week is busy

Good intentions about testing last until the third change of the day. So make the routine small:

- The journeys file is the only thing you maintain by hand.
- Every change ends with the agent’s description of what a user will notice.
- Nothing is “done” until the touched journeys were walked on a deployed address.
- The first time a journey’s result is new, a person looks. After that, a comparison does.

If walking them by hand stops fitting, that is the moment to automate the walk. Not before: automating journeys you haven’t walked yourself means approving results you have never seen.

## How EveryRole fits

EveryRole is built for this split. It tests your app from the outside, on its live address, and never reads the source code, so it can’t inherit what the agent got wrong. It explores the app as each kind of user you give it a test login for and suggests the journeys. You keep or skip each one.

At each stop of a journey it runs cases the demo didn’t: good input, empty, wrong format, wrong then right. It also checks whether the other kinds of user can open that page. In our own test suite, the `leaky` switch in the picture above has to be caught by that check, or the suite fails.

No verdict comes from an AI model. You say yes to the first result of a case, and after that every run compares with the answer you approved, in code. A different result is shown as Result changed and you are asked.

Your coding agent can use it too, with an API key. Before it tells you a change is done, it describes the change to EveryRole in plain words, the way it would in a pull request. EveryRole works out the journeys that prove it, asks about what the description leaves open, walks them at the address where the change is deployed, and reports each step with a picture of the page. You see the same plan and results in the app’s Changes tab, and can keep the journeys as tests after the merge. The [docs](https://everyrole.dev/docs#agents) show how. The agent still wrote the change. The proof comes from somewhere else.

## Try it on your own app

EveryRole tests your app’s real user journeys for each kind of user, from the live site, and runs them after every deploy. Paste your app’s address to see what it finds.

[Start with your app](https://everyrole.dev/signup) [How it works](https://everyrole.dev/docs#start)

## Keep reading

Deploys and CI

### [Run E2E tests on every preview deployment](https://everyrole.dev/blog/e2e-tests-preview-deployments)

To run E2E tests on preview deployments, wait for the deploy, take its address and run your journeys there. Five traps, and what a preview can’t prove.

Nov 22, 2026  6 min read

Deploys and CI

### [Test credentials in CI: where test logins belong](https://everyrole.dev/blog/test-credentials-ci)

Test credentials in CI belong in the pipeline’s masked variables, one pair per kind of user, typed by the job itself. Seven rules, and where they leak.

Nov 22, 2026  6 min read

Deploys and CI

### [E2E tests in CI without slowing every merge](https://everyrole.dev/blog/e2e-tests-in-ci)

Run E2E tests in CI as two sets. A few journeys block the merge, the full suite reports after it. How to choose the blocking set and keep it quick.

Nov 22, 2026  6 min read
