Percy "No snapshots found" build in CI
Percy started and finalized a build but received zero snapshots. The wrapping percy exec ran, but no percySnapshot() call reached the local Percy server, so there is nothing to compare.
What this error means
The Percy step succeeds but the dashboard shows a build with "No snapshots found," or the CLI logs "Build ... finalized" with a snapshot count of 0. Visual review has nothing to approve.
[percy] Snapshot taken: (none)
[percy] No snapshots found, deleting buildCommon causes
The test never calls percySnapshot
The suite runs under percy exec, but the tests do not actually invoke percySnapshot(page, name), so no images are sent.
The SDK cannot reach the local Percy server
Percy runs a local server that the SDK posts to. If the SDK is a mismatched version or the tests run in a separate network namespace, the snapshot calls silently no-op.
How to fix it
Call the snapshot API in the tests
Import the matching SDK and take a named snapshot at each state you want compared.
import { percySnapshot } from '@percy/playwright';
await page.goto('/');
await percySnapshot(page, 'Home page');Verify exec wraps the test command
Ensure the test runner is a child of percy exec so the SDK can reach the local server the CLI starts.
npx percy exec -- npx playwright testHow to prevent it
- Call
percySnapshotat each state you want captured. - Run the test command as a child of
percy exec. - Keep the Percy CLI and SDK versions aligned.