Test your Replit app with browser journeys
Connect Replit to Qualflare, add your published app's public URL as a browser target, and let Replit Agent run browser journeys that report as launches.
Last updated
To test a Replit app with Qualflare, connect Replit to the Qualflare MCP server and ask Replit Agent to save browser journeys, which Qualflare runs on the app's published 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, 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.
| Fact | Detail |
|---|---|
| Where | Journeys under Planning in the project sidebar; Project Settings > Browser Targets for the apps journeys test |
| Who | Adding, editing and deleting browser targets, and connecting Replit: 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) |
| Plans | Each run uses browser minutes from the workspace's monthly allowance, the same as for Lovable, not the launch quota |
| MCP tools | list_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 Replit app that is published with Sharing set to Public. See Limits for why.
- On the Qualflare project the results should go to, Editor+ · project (requires the Editor role or higher in the project).
Add your app as a browser target
A browser target is the app Qualflare's hosted browser opens. Only you add it, in Qualflare: Replit Agent can't create one.
- In Qualflare, open Project Settings > Browser Targets and click Add browser target.
- Choose Published app URL.
- Enter a Name, such as the app's name. Each target's name is unique in the project.
- Paste the app's address only, such as
https://my-app.replit.app, with no path, into App URL. - Optionally, add Allowed hosts and Test credentials (see Credentials and allowed hosts).
- Click Add published app.
The test credentials are encrypted and can never be read back; the app's address is not a secret and is shown on the Browser targets page. Any public https address works as a published app URL, not only Replit's: Bolt's *.bolt.host addresses and your own site do too.
Connect Replit to Qualflare
Replit connects to Qualflare with sign-in, so you copy no token:
- In Replit, open Integrations and choose Add custom MCP server.
- Enter
https://api.qualflare.com/mcp/appsas the server URL and click Test & save. - On the Qualflare page that opens, choose the project that holds your browser target.
- Leave Allow changes ticked: saving and running journeys are changes.
- 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. The Replit tab of the Connect a coding agent panel on that page lists the same steps. See Connect with sign-in for what a connection can do and how long it lasts.
Ask Replit Agent to create and run tests
Replit Agent sees the journey tools once it connects, so you ask for tests in your own words, in Replit. When an app has a browser target, Qualflare tells the agent that tests, test cases and test suites for it mean browser journeys.
You might write "Create the test suites this app needs on Qualflare". The agent lists your browser targets and existing journeys, saves one journey for each user flow it finds, runs them, and tells you the result and the launch number.
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.
Publish before you rerun
A run tests the app as last published. After a fix, publish the app again, then ask the agent to run the journeys again. A run started before the new publish finishes tests the old version.
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 in the environment Replit (published). Its results are in a suite named after the target, such as Browser journeys / My Replit app, with one test case per journey.
The "Made with Replit" badge Replit adds to a published app does not affect a run; Qualflare ignores it.
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
- Public apps only. Only an app published with Sharing set to Public can be tested. A password-protected or invite-only Replit app sends visitors to replit.com's sign-in, which the hosted browser cannot pass.
- The published app, not the dev URL. The development address (
*.replit.dev) is not supported. - As last published. A run does not see changes you have not published.
- 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. 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 not public (it asked for a sign-in or password)" — the app is password-protected or invite-only. In Replit, publish it with Sharing set to Public, then run the journeys again.
The journeys still fail right after the agent fixed the app — the fix is not published yet. Publish the app, then ask the agent 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.
Replit 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
Test your Lovable app with browser journeys
Connect Lovable to Qualflare, add your app's preview link as a browser target, and let Lovable save and run browser journeys that report as launches.
AI Features settings and limits
Qualflare AI usage limits by plan: monthly Quo messages, launch and case analyses, failure clusters held, resets and the project AI switch.