Installing the get-snappy CLI
In your CI environment you'll need the get-snappy CLI. It runs your test suite, renders the snapshots your tests take in Playwright browsers, and uploads the screenshots to Get Snappy.
Each release of the CLI runs one exact Playwright version and launches that version's browsers. get-snappy 0.7.2 runs Playwright 1.65.2, so run CI in the mcr.microsoft.com/playwright:v1.65.2-noble image, or an image built from it. It already has the browsers, their system dependencies and Node.js.
The CLI is the @get-snappy/cli package on npm and needs Node.js 22.12 or later. Install it inside your container, pinned to a version:
If you can't use the Playwright image, run get-snappy install-browsers after installing the CLI to download the matching browsers.
When you upgrade the CLI, check the Playwright version the new release needs in the package's CHANGELOG.md (on npm, under the Code tab), and move to the matching image.
get-snappy snapshot-run writes get-snappy.log in the working directory, recording every snapshot it receives and every one it rejects. Keep it as a CI artifact to trace a missing snapshot.
You'll also need to provide some environment variables for each test run. Your API key is the one generated when you created your project
If you were using Buildkite, for example, you can reference pre-provided environment variables in your pipeline.yml
There's a little more configuration, but it depends on whether you're testing Elixir Phoenix or Ember.js