Skip to content
ewyct edited this page Jul 4, 2026 · 7 revisions

Lastest

Free, open-source visual regression testing with AI-generated tests.

Record it. Test it. Ship it.


What is Lastest?

Lastest is a self-hosted visual regression testing platform that records your tests, writes them with AI, runs them anywhere, and fixes them when they break -- all in one tool.

1. Point it at your app
2. Record your user flows (point-and-click, no code)
3. AI generates resilient test code with multi-selector fallback
4. Every test runs inside an Embedded Browser container (EB stack required)
5. Screenshots compared with 3 diff engines (pixelmatch, SSIM, Butteraugli)
6. Review and approve visual changes -- or let AI auto-classify them

When self-hosted, your data stays on your server and your screenshots never leave your infra.


Core Flow

Development & Review Flow

Create Tests        Run Tests           Review
  Record manually     Embedded            Approve/
  AI-assisted         Browser             Reject
  Play Agent auto     (system or BYO)     changes

  One-time cost       Zero AI per run     New baseline saved
  (AI optional)       (pure Playwright)
  1. Create: Build tests your way -- record manually, let AI generate from a URL or spec, or let the Play Agent autonomously scan your entire app.
  2. Run: Every test executes inside an Embedded Browser pod (system-managed or BYO) -- triggered from the UI, a webhook, a schedule, or CI/CD via the @lastest/runner trigger CLI. No AI needed -- pure Playwright execution. There is no local-Playwright fallback and no remote-runner daemon; the EB stack is required.
  3. Compare: New screenshots are diffed against baselines using your chosen engine. Optional DOM-diff fallback catches structural changes when pixel comparison is inconclusive.
  4. Review: Visual diffs are classified. Approve intentional changes -- they become the new baseline.
  5. Fix: When tests break, AI can propose fixes to the test, or -- for real regressions -- the Fix-the-App Advisor can suggest a fix to your application code (never auto-applied). The Play Agent can fix and re-run autonomously.

Build Once, Run Forever

  • First run: screenshot becomes the baseline
  • Every run after: new screenshot is SHA256-hashed -- if it matches the baseline, instant pass. If it differs, the diff engine runs and you review the change.
  • AI costs are one-time: AI is only used during test creation and fixing. Running tests uses zero AI.
  • No per-screenshot pricing on self-hosted: every run is unlimited regardless of volume.

Quick Links

Clone this wiki locally