Skip to content

Test your v0 app with browser journeys

Connect v0 to Qualflare, add your published v0 app as a browser target, and let v0 run browser journeys that report as launches, even for a private app.

Last updated

To test a v0 app with Qualflare, connect v0 to the Qualflare MCP server and ask v0 to save browser journeys, which Qualflare runs on the app's published Vercel address in a hosted browser and files as launches; you need the Editor role on the project.

A browser journey is a named list of browser steps, up to 50, for one flow of your app, such as signing in or checking out. Qualflare runs the journeys against the app as it was last published, not against v0's in-chat preview, so a fix reaches the test only after you publish it. Each run is reported as a normal launch, so failure clusters, webhooks and integrations work on it like on any other launch.

Qualflare only uses access the app's owner grants. It opens the app's public address, or, for a private app, signs in with a protection bypass secret that you create in Vercel and paste into Qualflare.

FactDetail
WhereJourneys under Planning in the project sidebar; Project Settings > Browser Targets for the apps journeys test
WhoAdding, editing and deleting browser targets, and connecting v0: Editor+ · project (requires the Editor role or higher in the project). Viewing journeys and runs: Viewer+ · project (requires the Viewer role or higher in the project)
PlansEach run uses browser minutes from the workspace's monthly allowance, the same as for Lovable, not the launch quota
MCP toolslist_browser_targets, list_journeys, get_journey, create_journey, update_journey, delete_journey, run_journeys, get_journey_run, cancel_journey_run, browser_capabilities and testing_context

Before you begin

You need:

  • A v0 app that you can publish.
  • On the Qualflare project the results should go to, Editor+ · project (requires the Editor role or higher in the project).

Publish your app in v0

In v0, click Publish. The app gets an address like https://my-app.vercel.app. Each deployment also has its own address, like my-app-<hash>-<team>.vercel.app. Use the short <name>.vercel.app address as the target.

Add your app as a browser target

A browser target is the app Qualflare's hosted browser opens. Only you add it, in Qualflare: v0 can't create one.

  1. In Qualflare, open Project Settings > Browser Targets and click Add browser target.
  2. Choose Published app URL.
  3. Enter a Name, such as the app's name. Each target's name is unique in the project.
  4. Paste the app's address only, such as https://my-app.vercel.app, with no path, into App URL. Qualflare recognises *.vercel.app addresses as Vercel apps.
  5. Optionally, add Allowed hosts and Test credentials (see Credentials and allowed hosts).
  6. Click Add published app.

If the app is private, also follow Test a private app below.

Connect v0 to Qualflare

v0 connects to Qualflare with sign-in, so you copy no token:

  1. In a v0 chat, click +, then choose MCPs and add a custom server.
  2. Enter https://api.qualflare.com/mcp/apps as the server URL and choose OAuth for authentication.
  3. On the Qualflare sign-in page that opens, choose the project that holds your browser target.
  4. Leave Allow changes ticked: saving and running journeys are changes.
  5. Click Approve. Qualflare may ask you to confirm it's you first; complete that step and the approval finishes.

/mcp/apps serves only the browser-journey tools in the table above. One connection belongs to one Qualflare project. The connection then shows under Connected apps on Project Settings > Access Tokens, where you can revoke it. See Connect with sign-in for what a connection can do and how long it lasts.

Ask v0 to create and run tests

v0 sees the journey tools once it connects, so you ask for tests in your own words, in v0. For example:

Use Qualflare to list my browser targets, then run the journey "Sign in" on "My v0 app" and tell me the result.

v0 replies with the pass or fail summary and a link to the launch. You can also ask it to save a journey for each user flow it finds. When an app has a browser target, Qualflare tells the agent that tests, test cases and test suites for it mean browser journeys.

When a journey fails, the agent's job is to fix the app and run the journey again unchanged, or to update a journey that no longer matches the app; it is told never to weaken an assertion to make a run pass.

Fix, publish, rerun

A run tests the app as last published. The loop is:

  1. Fix the app in v0.
  2. Click Publish so the change goes live.
  3. Ask v0 to run the journeys again.

A run started before the new publish finishes tests the old version.

Test a private app

An app on Vercel can ask visitors to sign in to Vercel first. Qualflare's hosted browser can't sign in as you, so it needs a protection bypass secret that you create in Vercel.

Keep the production address private

  1. In Vercel, open the app's project, then Settings > Deployment Protection.
  2. Under Vercel Authentication, choose All Deployments, then save. Standard Protection protects the per-deployment addresses but not the production address (<name>.vercel.app). All Deployments protects both, and is available on all Vercel plans. Password Protection is a different, paid Vercel option and is not needed here.
  3. Check it worked: open the production address in a private browser window. It should ask for a Vercel login. If the app opens without one, save the setting again and redeploy.

Create a bypass secret

  1. On the same Vercel page, find Protection Bypass for Automation and create a secret. Name it something like Qualflare.
  2. Copy the secret.
  3. In Qualflare, open Project Settings > Browser Targets, choose Edit from the target's actions menu, paste the secret into Vercel protection bypass, and click Save changes.

The list then shows Bypass set for that target. Qualflare stores the secret encrypted, never shows it again, and sends it only to the app's own address.

Rotate or revoke the secret

  • Rotate: create a new secret in Vercel, then in the target's dialog choose Replace and paste the new value.
  • Stop Qualflare's access: delete or regenerate the secret in Vercel. Regenerating also breaks any other automation that uses the old value.

Check the results

Browser journey results are in two places in Qualflare:

  • Journeys in the project sidebar has a Journeys tab with each saved journey, its target and version, and a Runs tab with each run's status, duration and launch. A run goes from queued to running and reporting, and ends passed, failed, error or cancelled. A run's page shows its progress, the step that failed with the page text, and screenshots.
  • Each finished run is a launch, with its results in a suite named after the target, such as Browser journeys / My v0 app, with one test case per journey.

Credentials and allowed hosts

Test credentials are the logins a journey types, such as a test user's email and password. Each is a key and a value, up to 20 per target. A journey names the key, never the value, and the agent sees only the key names. Use a test account, never a real person's login.

Allowed hosts are the only sites the hosted browser may visit besides your app's own address, which is always allowed. A new published target has none, so add the backends your pages call, up to 49 hosts, with *.example.com for subdomains. qualflare.com and its subdomains are refused. A step that goes anywhere else fails with navigated outside allowed hosts: and the host's name.

To change either later, choose Edit from the target's actions menu, then Save changes.

Limits

  • The published app, not the preview. A run does not see changes you have not published, and v0's in-chat preview is not tested.
  • Private apps need a bypass secret. Without one, a Vercel-protected app can't be tested.
  • Journey and run limits are the same as for Lovable; see Limits.
  • Browser minutes are counted and refused the same way as for Lovable; see Browser minutes.

Delete a browser target

Deleting a browser target deletes its journeys, cancels its runs in progress, and deletes its stored test credentials and protection bypass secret. This cannot be undone. Past runs, launches and the results suite stay.

Choose Delete from the target's actions menu in Project Settings > Browser Targets, then confirm.

Troubleshoot

A run stops with "app is protected by Vercel (add its protection bypass secret to the target in Qualflare)" — the app asks for a Vercel login and the target has no secret. Create one as in Create a bypass secret, add it to the target, then run again.

A run stops with "app is protected by Vercel and its protection bypass secret was refused (revoked or wrong)" — the secret in Qualflare was deleted or regenerated in Vercel, or was pasted wrongly. Copy the current secret from Vercel and choose Replace in the target's dialog.

A run stops with "app did not load through its Vercel protection bypass" — Qualflare was let in, but the app itself did not load. Open the app's address yourself and check it is published and working, then run again.

The journeys still fail right after v0 fixed the app — the fix is not published yet. Click Publish in v0, then ask v0 to run the journeys again in a new message.

A step fails with navigated outside allowed hosts: — add the host named in the message to the target's Allowed hosts.

v0 can't save or run journeys — the connection was approved without Allow changes, or your role is below Editor. Revoke the app under Connected apps and connect again with Allow changes ticked.

Refusals for browser minutes or runs at once — these are the same as for Lovable; see Troubleshoot.

Next steps