Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Resources

    Blog

    Insights on automated testing and QA best practices.

    BlogProduct updatesCase studies
    AllComparisonsBest ToolsMobile TestingAI TestingTesting Fundamentals

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Written by
    Read time
    Published
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Back to Blog
    Blog

    How to Test a Lovable App: E2E Testing for Vibe Coded Web Apps

    How to test a Lovable app: where to run tests, Playwright vs Autosana, Git sync and CI setup, and worked failure examples for sign up, checkout and AI features.

    Written by
    Gautam Agarwal
    Read time
    13 min read
    Published
    November 23, 2026
    How to Test a Lovable App: E2E Testing for Vibe Coded Web Apps
    On this page
    1. Key Takeaways
    2. What is E2E testing for a Lovable app?
    3. Where should you test a Lovable app?
    4. The preview and the published app share one database
    5. Why E2E testing matters for vibe coded apps
    6. Lovable's built in browser testing
    7. Ways to test a Lovable app
    8. Playwright vs Autosana for Lovable apps
    9. How to test a Lovable app, step by step
    10. Step 1: Connect Git sync
    11. Step 2: Write your first test
    12. Step 3: Run tests on every change
    13. Step 4: Check more than one browser
    14. The Lovable pre launch checklist
    15. Lovable app testing examples
    16. Example 1: Sign up works in the preview and fails on the real domain
    17. Example 2: A header prompt breaks checkout
    18. Example 3: The AI feature fails in the local test run
    19. Example 4: A second account can read the first account's notes
    20. Common Lovable app testing problems and fixes
    21. The Lovable app testing process, summarized
    22. Conclusion
    23. FAQs
    24. How do you test a Lovable app?
    25. Can you test a Lovable app locally?
    26. Does Lovable sync code to GitHub?
    27. Which tools test vibe coded web apps?
    28. How do you test email sign up in a Lovable app?
    29. Does Lovable test my app automatically?

    Quick answer: to test a Lovable app, run full user journeys such as sign up, the core action and payment against your preview or published URL in a real browser, after every change you make with a prompt. That catches what a quick click through misses: a journey that broke in a part of the app outside your request.

    Lovable writes code at the speed of conversation. A prompt about the header can still reach a shared component that checkout uses, so the safe habit is simple: every prompt is a release, and every release gets the same journeys.

    Key Takeaways

    • Treat each prompt as a code change and rerun your vital journeys after it, beyond the feature you asked for.
    • Test the preview or published URL: Lovable's docs note that in apps created from May 13, 2026, connector and AI calls fail when the app runs locally.
    • Git sync commits every Lovable change to your repository, so CI can test each commit or pull request.
    • Playwright tests the URL in code; Autosana runs written flows in Chrome, Firefox, Edge or Chromium.
    • The preview and the published app share one backend and database, so use clearly labelled test accounts and clean up test data.
    • Lovable's own browser testing checks the preview while you build; a release still needs tests on the published URL.
    • Start with 3 to 5 journeys: sign up, login, the core action and payment, plus a two account check for private data.

    What is E2E testing for a Lovable app?

    E2E testing for a Lovable app opens the running site in a real browser and walks through a journey the way a customer would. The spine has three steps:

    1. Publish. Get the change onto a preview or published URL.
    2. Drive. Click, type and navigate like a user.
    3. Assert. Confirm the expected page, text or state appears.

    The same approach works for apps built with Bolt or v0, because each one ends as a web URL in a browser.

    Where should you test a Lovable app?

    WhereWhat runsBest use
    Local clone, older React and Vite appYour UI, with server calls on your Lovable backendDebugging in an IDE
    Local clone, app created from May 13, 2026Your UI and server code on your machineUI checks only
    Editor previewThe full app on Lovable's previewChecking a change right after a prompt
    Published appThe full app on your real domainE2E tests and release checks

    The Lovable Git sync docs explain the local gap: in newer apps built on TanStack Start, server code runs on your machine, so connector and AI calls fail locally and belong in the preview or the published app.

    With Autosana: flows run against any URL, including production, staging, preview and local servers, so the same flow covers the preview today and the published site tomorrow.

    __wf_reserved_inherit

    The preview and the published app share one database

    The Lovable preview docs describe the preview as a private staging space that always runs your latest work, while visitors see a published snapshot that changes only when you publish. They add an important detail: the preview and the published app share the same backend and data. Test sign ups, orders and messages created in the preview land in the database your real users read.

    Three habits keep that safe:

    • use dedicated test accounts with an obvious prefix, such as test+ email addresses
    • clean up test records after each run, or turn on test and live environment separation where your project supports it
    • run destructive journeys, such as deleting an account, only against test data

    Why E2E testing matters for vibe coded apps

    Prompts reach beyond their target. An edit to one screen can rewrite a shared component that three journeys depend on.

    Auth and email carry hidden setup. Sign up flows depend on redirect settings, email delivery and domains that differ between preview and production.

    Speed hides regressions. When you ship ten changes a day, nobody clicks through checkout ten times a day.

    Lovable's built in browser testing

    Lovable can test your app itself. Ask in the project chat with phrases like "test this" or "verify it works", and its browser testing opens the app in a real browser in a virtual environment, clicks buttons, fills forms and returns screenshots. According to the Lovable browser testing docs:

    • it tests exactly the version of the app you are viewing in the preview
    • it runs as the app user signed in to the preview, and can sign in itself on Lovable's built in backend
    • it can check mobile, tablet and desktop sizes
    • with test and live environment separation, it runs against the test environment preview
    • Lovable recommends building first and testing in a follow up prompt, since stopping a stuck test can lose that step's work

    That makes it a great quick check while you build. It leaves three gaps that a release process needs to cover: the published URL, repeated runs on a schedule or on every change, and more than one browser.

    Ways to test a Lovable app

    MethodStrengthGap
    Lovable browser testingFast checks inside the editorRuns on the preview, one prompt at a time
    Manual click through on your own phoneReal touch, real Safari or ChromeRepeating it after every prompt
    PlaywrightTests as code in your synced repositoryYou write and maintain locators
    AutosanaWritten flows on the published URL, on every change and on a scheduleNative mobile wrappers need their own builds
    Sessions with real usersWhether people understand the appRegression checks

    Playwright vs Autosana for Lovable apps

    Playwright

    Autosana

    PlaywrightAutosana
    Test formatTypeScript or JavaScript codeA written flow, in YAML or the dashboard
    Finding elementsLocators such as roles, labels and textThe agent reads the live page
    BrowsersChromium, Firefox and WebKitChrome, Firefox, Edge and Chromium
    Email sign upYour own inbox integrationLeased inboxes per run
    Pull request feedbackYour CI job and reporterA PR comment with videos plus a GitHub Check
    CostFree, open sourceFree tier, then paid plans

    Playwright suits teams who want tests as code beside the app. Autosana suits builders who want journeys described in words that keep passing while Lovable reshapes the UI.

    __wf_reserved_inherit

    How to test a Lovable app, step by step

    Step 1: Connect Git sync

    Link your project to GitHub from Lovable. The Lovable GitHub integration creates a repository and starts two way sync: changes in Lovable land in GitHub, and pushes to the active branch flow back into Lovable. That repository is where your CI runs.

    Step 2: Write your first test

    A Playwright version of the sign up journey:

    import { test, expect } from '@playwright/test';
    

    test('sign up reaches the dashboard', async ({ page }) => { await page.goto('https://your-app.lovable.app'); await page.getByRole('button', { name: 'Sign up' }).click(); await page.getByLabel('Email').fill('test@example.com'); await page.getByLabel('Password').fill('secret123'); await page.getByRole('button', { name: 'Create account' }).click(); await expect(page.getByText('Dashboard')).toBeVisible(); });

    The same journey as an Autosana flow, with a fresh inbox for the confirmation email:

    # .autosana/signup.flow.yaml
    name: Sign up
    instructions: |
    Sign up with email $AUTOSANA_EMAIL_ADDRESS and a new password.
    Confirm the account with the code from the inbox.
    Verify the dashboard loads.

    ‍

    With Autosana: attach the built in Lease email address hook and each run gets its own inbox, so parallel runs read only their own codes. This guide to OTP testing covers SMS codes too.

    Step 3: Run tests on every change

    - uses: autosana/autosana-ci@main
    with:
    api-key: ${{ secrets.AUTOSANA_KEY }}
    platform: web
    app-id: my-web-app
    flow-ids: "uuid-1,uuid-2"

    ‍

    With Autosana: Lovable can open pull requests in your synced repository, and the Autosana GitHub bot reads each PR diff, selects or writes the relevant flows, runs them and posts a comment with videos plus a GitHub Check.

    Step 4: Check more than one browser

    With Autosana: pick the browser per run. Chrome is the default, and Firefox uses a different rendering and JavaScript engine, so it catches bugs that stay hidden in Chromium family browsers. The Autosana web testing docs list every option.

    The Lovable pre launch checklist

    CheckHow to run itWhat it catches
    Sign up and login on the published URLOne flow per auth methodDomain and redirect settings
    Two accounts, one recordSign in as user A, then try to open user B's dataMissing access rules in the database
    Signed out visitorOpen private pages while signed outPages that skip the auth check
    Forms that saveSubmit, reload, confirm the record existsA success message over a failed write
    Real phoneTap every main button and scroll sideways on every pageTouch only bugs and horizontal overflow
    Payments in test modePay, decline, go back mid flow, double click PayDuplicate charges and stuck states
    Console and networkWatch for errors while journeys runFailing requests behind a working looking UI
    AI featuresRun them on the published URLServer calls that only work in Lovable's environment

    With Autosana: each row except the real phone check runs as a flow, and every run records the network requests the app made, so a failing request shows up beside the step that triggered it.

    Lovable app testing examples

    Each example starts from a failing run and traces it to a cause and a fix.

    Example 1: Sign up works in the preview and fails on the real domain

    Scenario: sign up passes in the editor preview. On the published domain, new users land on an error page after confirming their email.

    StepExpectedWhat the published run showed
    Submit the sign up formConfirmation email sentConfirmation email sent
    Open the confirmation linkBack in the app, signed inRedirect error
    Load the dashboardDashboardSign in page

    Cause: the auth redirect settings allowed only the preview address.

    Fix: add the published domain to the allowed redirect URLs, then run sign up against the published site.

    With Autosana: schedule the sign up flow daily against the published URL with Autosana automations, and a leased inbox receives each confirmation email, so domain and email drift surfaces within a day.

    Example 2: A header prompt breaks checkout

    Scenario: a prompt restyles the navigation bar. That afternoon, a customer reports an empty cart at checkout.

    StepExpectedWhat the run showed
    Add a product to the cartCart shows 1 itemCart shows 1 item
    Open checkoutCart total and Pay buttonEmpty cart
    Pay with the test cardOrder confirmationCheckout page

    Cause: the prompt rewrote a shared layout component, and the cart state reset on navigation.

    Fix: run every vital journey after each prompt, beyond the screen you changed.

    With Autosana: the GitHub bot reads the full diff, so a change to a shared component triggers checkout flows as well as header flows. If you also ship a browser add on, the same approach applies to Chrome extension testing, and this ranking of mobile app testing tools covers native apps.

    Example 3: The AI feature fails in the local test run

    Scenario: an AI summary button works in Lovable. The team's local test run fails on it every time.

    StepExpectedWhat the local run showed
    Open a documentDocument viewDocument view
    Click "Summarize"Summary appearsRequest error
    Copy the summaryCopiedButton greyed out

    Cause: the app was created after May 13, 2026, so its server code ran on the laptop, where AI and connector calls fail.

    Fix: point the test at the preview or published URL.

    With Autosana: cloud runs open the URL you give them in a hosted browser, so AI and connector calls reach Lovable's servers the way they do for real users.

    Example 4: A second account can read the first account's notes

    Scenario: a notes app passes every journey with one test user. A beta tester reports seeing someone else's notes.

    StepExpectedWhat the two account run showed
    User A creates a private noteNote savedNote saved
    User B opens the notes listOnly B's notesA's note listed too
    User B opens A's note by URLAccess deniedNote opens

    Cause: the notes table lacked a rule limiting rows to their owner, so every signed in user could read every note.

    Fix: add an ownership rule to the table, then keep a two account journey in the suite.

    With Autosana: store both accounts as environment variables, such as ${env:USER_A_EMAIL} and ${env:USER_B_EMAIL}, and write one flow that signs in as each in turn.

    Common Lovable app testing problems and fixes

    SymptomLikely causeFix
    Works in preview, fails when publishedDomain specific auth or redirect settingsAdd the published domain, test the published URL
    AI or connector calls fail locallyServer code running on your machineTest the preview or published URL
    A prompt breaks a separate journeyA shared component changedRun every vital journey after each prompt
    Email tests collide in parallelOne shared inboxGive each run its own inbox
    Layout breaks in one browser onlyEngine differencesRun key flows in Chrome and Firefox
    Test records show up for real usersPreview and published share one databaseUse test accounts and clean up after runs
    One user sees another's dataA table lacks an ownership ruleAdd the rule and keep a two account flow

    ‍

    The Lovable app testing process, summarized

    StepWhat you doOutput
    1. SyncConnect Git sync to GitHubA repository CI can watch
    2. WriteCover sign up, login, the core action and paymentVital journey tests
    3. TargetPoint tests at the preview or published URLResults that match production
    4. AutomateRun on every commit or pull requestResults after each prompt
    5. WidenAdd a second browserCross browser coverage
    6. DiagnoseTrace each failure to its causeA fix through your next prompt

    Conclusion

    Testing a Lovable app means matching the pace of prompting with the same few journeys, run against the real URL after every change. Connect Git sync, describe your vital journeys once, and trace each failing run back to its cause before your next prompt.

    A good first step this week: connect your project to GitHub, write sign up as one Autosana flow, and run it against your published site in Chrome and Firefox.

    __wf_reserved_inherit

    FAQs

    How do you test a Lovable app?

    Run full user journeys against the preview or published URL after every prompt.

    Can you test a Lovable app locally?

    You can check the UI, though newer apps fail AI and connector calls locally.

    Does Lovable sync code to GitHub?

    Yes. Git sync keeps two way sync between Lovable and a repository you own.

    Which tools test vibe coded web apps?

    Playwright works as code, and Autosana runs written flows against any URL.

    How do you test email sign up in a Lovable app?

    Use a fresh inbox per run, such as Autosana's leased email addresses.

    Does Lovable test my app automatically?

    Lovable's browser testing checks the preview on request; published URL tests need a separate tool.

    ‍

    ‍

    On this page

    1. Key Takeaways
    2. What is E2E testing for a Lovable app?
    3. Where should you test a Lovable app?
    4. The preview and the published app share one database
    5. Why E2E testing matters for vibe coded apps
    6. Lovable's built in browser testing
    7. Ways to test a Lovable app
    8. Playwright vs Autosana for Lovable apps
    9. How to test a Lovable app, step by step
    10. Step 1: Connect Git sync
    11. Step 2: Write your first test
    12. Step 3: Run tests on every change
    13. Step 4: Check more than one browser
    14. The Lovable pre launch checklist
    15. Lovable app testing examples
    16. Example 1: Sign up works in the preview and fails on the real domain
    17. Example 2: A header prompt breaks checkout
    18. Example 3: The AI feature fails in the local test run
    19. Example 4: A second account can read the first account's notes
    20. Common Lovable app testing problems and fixes
    21. The Lovable app testing process, summarized
    22. Conclusion
    23. FAQs
    24. How do you test a Lovable app?
    25. Can you test a Lovable app locally?
    26. Does Lovable sync code to GitHub?
    27. Which tools test vibe coded web apps?
    28. How do you test email sign up in a Lovable app?
    29. Does Lovable test my app automatically?

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.