E2E frameworks

Add Buddy visual testing plugins to your existing E2E tests - Playwright, Selenium, Cypress, and Puppeteer.

If you already have end-to-end tests, adding visual testing is a small change: install the Buddy plugin for your framework, call its snapshot command at the states you want to verify, and run your usual test command through the bdy CLI. Every run creates a session whose snapshots are compared against the approved baseline.

The flow is the same for every framework:

  1. Install the bdy CLI (Node.js v20+) and set the suite token as BUDDY_VT_TOKEN
  2. Install the visual tests plugin for your framework
  3. Take snapshots inside your tests
  4. Run the tests with bdy tests visual session create "<your test command>"
Info
Useful session create flags: --oneByOne sends snapshots progressively so you can start reviewing during long runs; --parallel + bdy tests visual session close let multiple runners contribute to a single session. See the CLI reference.

Framework guides: