What browser testing can do
When browser testing runs, Lovable can:- Capture screenshots of the app
- Click buttons and links
- Fill inputs and submit forms
- Navigate between pages
- Read console logs and network requests
- Catch errors that happen while your app runs
- Check how your app looks on mobile, tablet, and desktop screens, when the layout is what Lovable is checking. For other checks, Lovable uses a desktop-size window.
How browser testing works
Lovable uses browser testing selectively, after trying faster checks first, such as reading your app’s logs and running the tests in your project. Lovable may use browser testing when:- You ask Lovable to verify that something works
- Lovable has just changed your app’s interface and checks the result on its own
- You report something that misbehaves on the page, such as a button that does nothing or a page that stays blank
- Lovable cannot find the cause of a visual problem in logs or code
Where it runs
The browser runs remotely in a secure virtual environment. It is not your personal browser and does not take over your local session.- Browser testing runs against the preview of the project you are working in, using its latest code.
- If your app has sign-in, browser testing runs as the app user currently signed in to the preview. An app user is someone with an account in your app, which is separate from your Lovable account. If the preview is signed out, Lovable can sign in to your app.
- Tell Lovable which actions or areas it should not click or trigger.
Test pages behind a login
When browser testing reaches a login screen and your app’s sign-in runs on the built-in backend, Lovable can sign in and test the pages behind it, such as dashboards and account pages. Lovable chooses the app user to sign in as from your app’s users and your request:- If your app has exactly one user, Lovable signs in as that user.
- If you ask Lovable to check something as yourself, or your app has several users and you have not said which one to use, Lovable signs in as the app user with your Lovable account’s email.
- If you ask Lovable to sign in as a specific person, it asks for your approval in the project chat first. Only workspace admins and owners can ask for this. Lovable does not use or change that person’s password.
- If your app has no users yet, or Lovable looks for the app user with your Lovable account’s email and finds none, Lovable asks to create a test user. See Let Lovable create a test user.
Let Lovable create a test user
When Lovable needs to test a signed-in page and no app user fits, it can create a test user in your app. Lovable offers this only when your app’s sign-in runs on the built-in backend. Lovable asks for your approval first on a Create a test user card in the project chat. The card shows who the test user will be, for example a team member who can add tasks. Lovable adds the test user to your app’s users with its email already confirmed, so the check does not wait for a confirmation email. Lovable gives the test user the role the check needs. When Lovable finishes its reply to your message, it removes the test user from your app. Anything your app does when someone signs up, such as sending a welcome email, still happens. On the card, choose one of:- Always allow: Creates this test user and lets Lovable create test users in this project without asking.
- Allow once: Creates this test user. Lovable asks again the next time it needs one.
- Never allow: Does not create this test user and stops Lovable from creating test users in this project.
- Skip: Does not create a test user this time. Lovable asks you to sign in to the preview instead.
What happens during a browser testing run
While Lovable tests your app, the project chat shows each browser step as an activity card with a short description of what Lovable is checking. Click a card to open the Details view, a timeline of every step Lovable took. When Lovable finishes, it reports what it observed: which page it checked, what the page showed, and any errors in the browser console. Browser testing takes longer than Lovable’s other checks because it runs a real browser and checks the results.Example: Reproduce a bug and verify the fix
When you find a bug, ask Lovable to reproduce it in the browser, fix it, and then verify the fix. For example:Limitations
- Lovable may copy, paste, and select text less reliably than it clicks.
- Lovable may miss subtle visual design details or color differences.
- Lovable may have more trouble with icon-only buttons than with buttons that have text labels.
- Signed-in testing requires the built-in backend. For apps that use their own Supabase project, Lovable tests only pages that don’t require signing in.
FAQ
Does browser testing run automatically?
Does browser testing run automatically?
Yes, in some cases. Lovable may use browser testing on its own when it checks a change to your app’s interface or reproduces a problem you report, but it tries faster checks first.
How can I make sure Lovable uses browser testing?
How can I make sure Lovable uses browser testing?
Ask for it in the project chat. Common trigger phrases include: “verify it works”, “make sure it works”, “test this”, “check if it’s working”.For example:
Which environment does browser testing run in?
Which environment does browser testing run in?
Browser testing runs against the preview of the project you are working in, using its latest code.
Does browser testing use my app permissions?
Does browser testing use my app permissions?
Yes. If your app has sign-in, Lovable tests as the app user currently signed in to the preview. If the preview is signed out, Lovable can sign in to your app.Tell Lovable which actions it should not click or trigger.
Is this my real browser?
Is this my real browser?
No. Browser testing uses a real browser running in a remote virtual environment. It does not take over your local browser or session.
What if browser testing keeps failing the same action?
What if browser testing keeps failing the same action?
If Lovable repeatedly fails to interact with the same element, the cause can be a browser interaction limit or an issue in your app, such as a hidden element, broken state, or unexpected layout.Try the following:
- Read what Lovable reports it saw on the page, including any console errors, and review its steps in the Details view
- Ask Lovable to make the element easier to interact with (for example, by adding visible text or an accessibility label)
- If the issue persists, ask Lovable to avoid interacting with that element