All posts

GuideDevfab Team9 min read

How to test a vibe-coded app before launch

How to test a vibe-coded app before launch: list the user journeys, click them as every role, try to break inputs, check access and secrets, then automate tests.

How to test a vibe-coded app before launch

Short answer: Write down the journeys that must work, then click each one as every kind of user. Try to break inputs, check that people can only see their own data, and search the code for exposed secrets. Turn the main journeys into automated tests, check real devices, and run a small pilot before you open the doors.

A vibe-coded volunteer shift planner going through UI, flow and logic tests before launch

You described an app, watched it appear, and it looks finished. The demo works every time you click it. That is exactly the problem: you only click the paths you expect.

Real users don't. They paste odd text, open two tabs, share links and sign in on old phones. A vibe-coded app has never met them, and nobody has read most of its code.

In this guide, you'll learn:

Work through the steps in order; each one builds on the last.

Why vibe-coded apps fail at launch

Prompt-built apps break in a few predictable places. The happy path works because that's what you described. The edges don't, because nobody asked for them. Permissions are often missing or only enforced on screen, not on the server. And each new prompt can quietly change code you didn't mention.

App builders are honest about this. Lovable runs a security scan on every publish and offers a deeper scan, but its FAQ says the scans "support secure development but do not guarantee it." Testing is still your job.

Our example: a volunteer shift planner for a food bank. Coordinators post shifts, volunteers sign up, the app sends reminders, and nobody can take a full shift.

Step by step

Step 1: Write down the journeys that must work

List every journey a real person will take, from start to finish, in plain sentences. Not screens; journeys.

Shift planner:

  1. A volunteer signs up, confirms email and picks a shift.
  2. A volunteer cancels, and the slot opens for someone else.
  3. A coordinator posts a shift with a limit of places.
  4. A coordinator sees who is coming and exports the list.
  5. A volunteer gets a reminder before the shift.

This list becomes your test plan. If a journey isn't on it, it won't get tested.

Step 2: Click every journey as every role

Make one test account per role: volunteer, coordinator, admin. Walk every journey as each one. Write down what breaks, what's confusing and what's missing.

Watch for screens that only work when data already exists. A coordinator with no shifts yet should see a helpful empty page, not an error.

Step 3: Try to break the inputs

Now be the difficult user. On every form:

  • Leave required fields empty and submit.
  • Paste very long text, emoji and other languages.
  • Type a date in the past or a negative number of places.
  • Double-click the submit button.
  • Sign up for the last place from two browsers at once.

That last one matters. If two volunteers can grab the last slot, the "no overbooking" rule only lives on screen. That's a logic bug, and it's common.

Step 4: Check who can see and change what

This is the test most vibe-coded apps fail. For each role, try to:

  • Open another user's page by changing the ID in the URL.
  • Call the app's API directly without signing in.
  • Edit or delete a record you don't own.

A volunteer should never see other volunteers' phone numbers. If you can reach someone else's data by editing a link, fix it before anything else. Our list of security questions to ask about AI-built software goes further.

Step 5: Look for secrets and risky data

Search the code for API keys, passwords and tokens. Keys that end up in front-end code are visible to anyone who opens the browser's developer tools. Move them to server-side settings.

Check the data you collect, too. Some builders limit what their terms allow: Lovable's terms don't allow protected health information, payment card data or government identifiers. If your app needs those, plan where it will run first.

Step 6: Turn the journeys into automated tests

Manual clicking finds today's bugs. Automated tests catch tomorrow's, when a new prompt breaks something you didn't touch. Turn the journey list from step 1 into tests that run before every release.

Open-source tools help. Playwright can record your clicks into test code, and its test agents can explore an app, write a test plan and generate tests from it. Lovable can also write front-end tests when you ask.

Cover three layers:

  • UI: each screen loads and its buttons work.
  • Flow: whole journeys pass, end to end.
  • Logic: rules hold, such as no overbooking and correct reminder timing.
Illustration: QA report for the volunteer shift planner with UI, flow and logic checks planned

Step 7: Test on real devices and browsers

Volunteers will use whatever phone they have. Open the app on an older Android phone, an iPhone, and at least two desktop browsers. Check that forms fit the screen, buttons can be tapped and dates show in the right format.

Try a slow connection as well. Many generated apps show a blank screen while loading instead of a clear message.

Step 8: Run a small pilot with real users

Pick a handful of friendly users and one real event. Give them a way to report problems. Watch what they do, not what they say. You'll find journeys you never wrote down.

Fix, re-run your automated tests, and only then open sign-ups to everyone.

How Devfab builds testing into the factory

Coding agents automate the developer. Devfab automates the development lifecycle, and testing is one of its stages rather than an afterthought.

  • A person approves the plan before any code, so the journeys you care about are written down up front.
  • The QA agent runs UI and flow tests (screens, buttons and user journeys clicked end to end) plus logic tests, such as "no double booking of a shift."
  • "QA agent · review before Done" is a workspace switch: when it's on, a ticket isn't Done until it has been reviewed.
  • ChainFlow maps which functions and APIs call each other, so when a later change touches sign-up, the agents see that reminders and the coordinator export may be affected.
Illustration: Devfab workspace controls with Human in the loop mode and the QA agent review switch turned on

Honest limits: Devfab is in Beta, needs a GitHub account and isn't an editor for hands-on coding. If you already have a vibe-coded app, see How to move from Lovable to a production codebase.

Common mistakes

  1. Testing only as the admin. Admins can see everything, so permission bugs stay hidden.
  2. Trusting the screen. A hidden button doesn't stop someone calling the API.
  3. Asking the builder to "check everything." It tends to confirm what it built.
  4. No tests after launch. The next prompt can break a journey that worked yesterday.
  5. Skipping empty states. New accounts with no data hit errors first.
  6. Launching to everyone at once. A small pilot finds the journeys you missed.

Checklist

  • [ ] Every journey written down, start to finish
  • [ ] Each journey clicked as each role
  • [ ] Forms tried with empty, long, odd and duplicate input
  • [ ] Other users' data unreachable by URL or API
  • [ ] No keys or passwords in front-end code
  • [ ] Main journeys covered by automated UI, flow and logic tests
  • [ ] Checked on real phones and browsers
  • [ ] Pilot run with real users and a way to report problems

For tools that help, see Best AI testing tools for AI-generated code.

FAQ

Can I trust the AI that built my app to test it too?

Use it, but don't rely on it alone. A builder that wrote the code tends to test the paths it expected. Add checks from a different angle: a person clicking every journey, a separate test suite, and someone trying to break inputs and permissions.

What is the most important test for a vibe-coded app?

Access control. Check that each user can see and change only their own data, and that pages and APIs reject people who aren't signed in. A broken screen annoys users; leaked data can end the product.

Do I need automated tests before launch?

For anything with real users, yes, at least for the main journeys. Every later prompt can change code you didn't ask it to touch. Automated journey tests tell you when a change broke sign-up, booking or payment before your users do.

How does Devfab test the apps it builds?

Devfab's QA agent runs UI and flow tests (screens, buttons and user journeys clicked end to end) plus logic tests. With the workspace switch "QA agent · review before Done" on, a ticket isn't marked Done until it has been reviewed.

Built something by prompt? Find out what breaks before your users do. Try the Devfab Beta

Sources (checked November 2026): Lovable FAQ; Playwright; Playwright Test Agents.

Frequently asked questions

Can I trust the AI that built my app to test it too?

Use it, but don't rely on it alone. A builder that wrote the code tends to test the paths it expected. Add checks from a different angle: a person clicking every journey, a separate test suite, and someone trying to break inputs and permissions.

What is the most important test for a vibe-coded app?

Access control. Check that each user can see and change only their own data, and that pages and APIs reject people who aren't signed in. A broken screen annoys users; leaked data can end the product.

Do I need automated tests before launch?

For anything with real users, yes, at least for the main journeys. Every later prompt can change code you didn't ask it to touch. Automated journey tests tell you when a change broke sign-up, booking or payment before your users do.

How does Devfab test the apps it builds?

Devfab's QA agent runs UI and flow tests (screens, buttons and user journeys clicked end to end) plus logic tests. With the workspace switch "QA agent · review before Done" on, a ticket isn't marked Done until it has been reviewed.