Blog /
How to Test Vibe Coded Apps Before and After Deploy
Learn how to test vibe coded apps by checking the live app, locking down data, and rerunning user journeys after each deploy.

To test a vibe coded app, test the deployed app, not the agent's word that it is “done.” Lock down data access and secrets first. Then automate the main user journeys (sign-up, sign-in, the core action, payment) to run after every change, and have the live app checked by something other than the agent that wrote the code.
How to test vibe coded apps?
Run these six steps in order. Access controls and secret handling come before browser journeys because a successful journey doesn't establish that private data is protected.
Lock down data access rules: enable Row Level Security on every exposed table and test it with an owner and a non-owner account.
Keep secrets out of the repository: turn on secret scanning and rotate any credential it finds.
Run the platform's security checks: review each finding, and don't read an empty list as a pass for your journeys.
Automate the main journeys with Playwright: script sign-up, sign-in and the core action, and run them in CI on every pull request.
Exercise payment success and failure in a sandbox: use test keys and test cards, never real card details.
Check the deployed app separately: after every deploy, have the live URL checked by something that did not write the code.

1. Lock down data access rules
Supabase's Row Level Security documentation states: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.” Its instruction is explicit: “Enable RLS on every table in an exposed schema.”
Have the agent inspect migrations and policies, then write and run authorization tests with separate owner and non-owner test accounts (Supabase suggests pgTAP tests run with supabase test db). Test direct requests, not merely whether the interface hides a button.
Catches: Rows that unauthorized users can read or change.
Misses: RLS doesn't establish that authorized rows contain correct business results.
2. Keep secrets out of the repository
Enable GitHub secret scanning where it is available for the repository. Treat a detected credential as exposed: revoke or rotate it, update the deployment secret and remove its use from committed code.
Deleting a key from the latest file isn't enough. The credential may remain usable and present in repository history.
Catches: Supported secret patterns committed to the repository.
Misses: Secrets exposed only through browser bundles, runtime responses or logs.
3. Run the platform's security checks
Lovable's security features include automatic checks before publishing, advanced checks that read the app's full code, Wiz scanning, and Aikido AI penetration testing, which runs AI agents against the running app. Review each finding and tell a completed check apart from one that couldn't run.
Use platform findings as targeted repair work. Don't read an empty findings list as permission to skip authorization or journey tests.
Catches: Vulnerabilities and configuration issues within the checks' scope.
Misses: Security properties the platform doesn't test or guarantee.
4. Automate the main journeys with Playwright
Use the official Playwright setup: initialize with npm init playwright@latest, then run the suite with npx playwright test. The coding agent can run those commands and repair failures.
Script sign-up, sign-in and the core action. Assert the destination, saved state and permission boundaries, rather than only the presence of a success notification. Keep test-account credentials in the CI runner's secret store.
For a local app inside a Claude Code session, Anthropic's webapp-testing skill is another option; our guide to the webapp-testing skill covers how to install it and where it stops.
Catches: Scripted journeys that break in a real browser.
Misses: Journeys nobody scripted and expectations that were wrong from the start.
5. Exercise payment success and failure in a sandbox
Use Stripe test API keys in a sandbox, separate from live billing credentials. Stripe's testing documentation says “Don't use real card details.” Its example card is 4242 4242 4242 4242, with “a valid future date, such as 12/34” and “any three-digit CVC”; 4000000000000002 is the generic decline card.
Automate both outcomes. Confirm that a declined payment doesn't grant access and that a successful sandbox payment produces the expected entitlement through the server-side flow.
Catches: Checkout failures, decline handling and incorrect sandbox entitlement updates.
Misses: Sandbox success doesn't validate live-mode credentials or configuration.
6. Check the deployed app separately
After every deploy, have the same journeys checked on the live URL by something that did not write the code, and hand the result back to the coding agent to fix. Your agent says “done”; CheckMyApp uses your live app as a real user and tells the agent what broke. It connects to Claude Code, Cursor and Codex through MCP.
Keep sandbox payment runs separate from live charging. A check of the production journey should reach the billing entry point without making uncontrolled purchases.
Catches: Deployed journey failures that a green build can hide.
Misses: Journeys that weren't included and conditions absent during the run.
A live release passes only when every critical journey completes in the same run against the production URL. Sandbox payment results remain a separate prerequisite.
Who Decides Whether a Test Passed
The useful distinction between testing methods is who defines success and who evaluates the result. An agent's completion message describes its work. It doesn't establish what a signed-in user can accomplish after deployment.
Security scans have the same boundary. Lovable's security documentation says its checks “can't guarantee that your app is secure or replace a full security review” and “You are still responsible for your app's security.” That's a clear boundary, not a reason to skip the checks.
A build can pass while a redirect sends users to a broken page. A form can display a success message while its API request fails. An administrator's account can complete an action that an ordinary customer can't.
Define the outcome before running the test
For founders building with Lovable, Bolt, Cursor, Claude Code or Codex, the acceptance criteria should describe user outcomes rather than implementation details. A saved record must persist after a reload. A private record must remain inaccessible to another account.
A check of a journey should cover:
The complete journey: Navigation, authentication, submission and the destination after the action.
The requests behind it: Required requests, failures and redirects.
The resulting state: The record, permission or entitlement the action was supposed to change.
Negative paths belong in that definition. An unauthenticated request must fail safely. Another signed-in user must not retrieve the original user's private data by changing an identifier.
Testing methods compared by what they catch and who decides
| Method | What it catches | What it misses | Who decides it passed |
|---|---|---|---|
| The agent saying done | Reports that code was written and the agent finished its task | Whether a user can complete the live journey | The agent itself |
| Platform security scan | Issues detected by the platform's checks | Security properties outside those checks | The developer, reviewing the scan result |
| Unit tests the agent wrote | Logic inside the functions selected for testing; the fastest check for logic | Live configuration, authentication state and third-party services | The assertions the agent wrote, unless independently reviewed |
| Playwright E2E in CI | Scripted browser journeys; the better choice for repeatable regression tests on every pull request | Unscripted journeys and incorrect expectations | Reviewed assertions enforced by CI |
| Browser tools inside the agent (Playwright MCP / Claude in Chrome) | A change under development, with direct browser feedback; good for checking a change while you build | Unattended coverage after deploy | The agent in its own session, against your acceptance criteria |
| Separate check of the live app after deploy | Deployed journeys that a green build can hide | Journeys outside its scope and failures absent during that run | A checker that did not write the code |
- Method
- The agent saying done
- What it catches
- Reports that code was written and the agent finished its task
- What it misses
- Whether a user can complete the live journey
- Who decides it passed
- The agent itself
- Method
- Platform security scan
- What it catches
- Issues detected by the platform's checks
- What it misses
- Security properties outside those checks
- Who decides it passed
- The developer, reviewing the scan result
- Method
- Unit tests the agent wrote
- What it catches
- Logic inside the functions selected for testing; the fastest check for logic
- What it misses
- Live configuration, authentication state and third-party services
- Who decides it passed
- The assertions the agent wrote, unless independently reviewed
- Method
- Playwright E2E in CI
- What it catches
- Scripted browser journeys; the better choice for repeatable regression tests on every pull request
- What it misses
- Unscripted journeys and incorrect expectations
- Who decides it passed
- Reviewed assertions enforced by CI
- Method
- Browser tools inside the agent (Playwright MCP / Claude in Chrome)
- What it catches
- A change under development, with direct browser feedback; good for checking a change while you build
- What it misses
- Unattended coverage after deploy
- Who decides it passed
- The agent in its own session, against your acceptance criteria
- Method
- Separate check of the live app after deploy
- What it catches
- Deployed journeys that a green build can hide
- What it misses
- Journeys outside its scope and failures absent during that run
- Who decides it passed
- A checker that did not write the code
Playwright MCP is “A Model Context Protocol server that provides browser automation capabilities using Playwright.” It lets the agent drive a browser itself, which suits checking a change while you build.
Claude in Chrome connects Claude Code to your Chrome browser “to test web apps, debug with console logs, automate form filling, and extract data from web pages.” Its documentation also states: “When Claude encounters a login page or CAPTCHA, it pauses and asks you to handle it manually.” That makes an interactive session different from an unattended release gate.
Release rule: The writer shouldn't be the sole grader. Separate execution helps, but explicit acceptance criteria still determine what a pass means.
Sorting Failures and Handing Evidence Back to the Agent
A failed check needs classification before another code edit. Otherwise, an agent can rewrite working authentication code to compensate for an expired test credential.
Classify the failure before changing code
Application defect: A clean rerun with valid test data reproduces the failure. For example, sign-in consistently redirects to a route the application doesn't serve.
Environment or integration failure: The deployed environment lacks something the application needs, such as a missing production configuration value for an external service.
Test failure: The check can't run its intended journey. An expired test-account password prevents sign-in before the application behavior can be evaluated.
A failure to reach the application is not automatically an application defect. Establish whether the URL, deployment, account and checker were usable before assigning responsibility.
Preserve actionable evidence
Send the agent a compact failure record:
Location: Journey name, deployed version and failing step.
Visual evidence: A screenshot of the state at failure.
Request evidence: Status codes and the redirect chain.
Runtime evidence: Console errors.
Expected outcome: What should have happened and what happened.
Remove passwords, session cookies, authorization headers and unrelated personal data before attaching evidence.
The workflow for making Claude Code validate its own work should end with the same journey rerunning after the fix reaches production. A local pass alone doesn't close a deployed defect.
Closure condition: A fix counts after a clean follow-up run, not after another completion message.
If the same failure returns, inspect configuration and integrations before rewriting code again. A check reports only what it saw on that run; it doesn't guarantee that the app is free of defects.
How Often to Run Each Check
Use this schedule as an operating policy, with stricter coverage for journeys that control access, money or the app's main purpose.
Schedule for each check
| Check | When it runs | Scope | Why this timing |
|---|---|---|---|
| Data access rules tests | Every schema or policy change | Every table in an exposed schema | Schema edits can expose data |
| Secret scan | Every push to the repository | Repository content supported by the scanner | Credentials need attention when introduced |
| Platform security scan | Before each publish, as the platform offers | Its supported scope | Security findings need their own review |
| Unit and end-to-end tests in CI | Every pull request | Business logic and critical journeys | Repeatable regression checks catch unintended changes |
| Live journey check | Every deploy, and on a regular schedule | Critical journeys and signed-in pages | Configuration and dependencies can fail between releases |
| Payment sandbox test | Every billing-code change | Checkout, decline and success paths | Billing changes can alter entitlement behavior |
- Check
- Data access rules tests
- When it runs
- Every schema or policy change
- Scope
- Every table in an exposed schema
- Why this timing
- Schema edits can expose data
- Check
- Secret scan
- When it runs
- Every push to the repository
- Scope
- Repository content supported by the scanner
- Why this timing
- Credentials need attention when introduced
- Check
- Platform security scan
- When it runs
- Before each publish, as the platform offers
- Scope
- Its supported scope
- Why this timing
- Security findings need their own review
- Check
- Unit and end-to-end tests in CI
- When it runs
- Every pull request
- Scope
- Business logic and critical journeys
- Why this timing
- Repeatable regression checks catch unintended changes
- Check
- Live journey check
- When it runs
- Every deploy, and on a regular schedule
- Scope
- Critical journeys and signed-in pages
- Why this timing
- Configuration and dependencies can fail between releases
- Check
- Payment sandbox test
- When it runs
- Every billing-code change
- Scope
- Checkout, decline and success paths
- Why this timing
- Billing changes can alter entitlement behavior
Assign priority and enforce a stop condition
Label journeys critical, important or exploratory. Sign-up, sign-in, the core action and payment normally belong in the critical group. Run broader journeys on a schedule and whenever their pages change.
Unchanged journeys still need running. A permissions edit can affect another page, and an external service can fail without a repository change.
A passing security scanner must not override a failing critical journey; they cover different things.
When a critical journey fails after deployment, stop further rollout. Roll back or deploy a focused fix, then rerun the affected journey before shipping another unrelated change.
Confirm the Next Deploy Before You Ship
Start with written acceptance criteria, not a larger collection of tools. Give each journey an entry point, a test identity, an action, an expected result and a forbidden outcome.
For example, saving a private project should produce a persistent record for its owner. A different test account must remain unable to retrieve it through a direct request.
Use the software deployment testing workflow to make the post-deploy result an explicit release decision. Web Mage's website launch checklist covers the wider launch items (DNS, SSL, forms, analytics) alongside that gate.
A local-only workflow can use Playwright MCP during development and Playwright in CI for regression coverage. It still needs a run against the deployed URL with independently reviewed expectations. To connect a separate live check to your agent, see CheckMyApp's install page.
Ship the next change only after the critical live journeys pass. An unresolved failure should produce a repair or rollback, not another feature layered over it.
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/mcpFree account: $3 of checks, no card · Cursor, Codex and the full install guide
Common Questions About Testing Vibe Coded Apps
Is a security scan enough?
No. A scan only covers the vulnerabilities and configurations it can evaluate, and Lovable's own documentation says its checks can't replace a full security review. A scan doesn't establish that sign-up, authorization or checkout behaves correctly. Pair it with access-policy tests, secret scanning, sandbox payment tests and automated live journeys.
Can the coding agent test its own work?
Yes, it can and should run unit tests, Playwright suites and browser tools. Those checks are useful during development, but agent-written assertions can repeat the implementation's mistaken assumptions. Independently defined acceptance criteria and a separate run against the deployed app should decide release readiness.
How often should a vibe coded app be tested?
Run critical journeys after every deployment and broader journeys on a regular schedule or when their pages change. Run focused checks when their inputs change, such as authorization tests after policy edits and sandbox tests after billing changes. A green build doesn't replace that schedule.
This article was prepared with the help of AI. Found a mistake? Tell us.


