Then create diffy comparison with name "value"

This step creates a named Diffy visual comparison (a "Diff") from the first two snapshot IDs uploaded during the current scenario, identical to create diffy comparison except that the comparison is given the label you supply. The name appears in the Diffy interface and makes it easy to identify the diff when reviewing results or sharing links with teammates.

You must have uploaded at least two snapshots with send screenshots to diffy with name before calling this step. The resulting comparison ID is stored internally so that wait for diffy comparison to complete can poll it. Both DIFFY_API_KEY and DIFFY_PROJECT_ID must be configured. Use meaningful names such as "release-2.0", "nightly", or "homepage-baseline-vs-changed" to keep your Diffy project history readable.

Accepted phrasings

Then I create diffy comparison with name "release-2.0"
Then we create diffy comparison with name "release-2.0"
Then create diffy comparison with name "release-2.0"
And I create diffy comparison with name "release-2.0"
And create diffy comparison with name "release-2.0"

Examples

Then create diffy comparison with name "release-2.0"
Then create diffy comparison with name "nightly"
Then create diffy comparison with name "before-vs-after"
Then create diffy comparison with name "homepage-baseline-vs-changed"

In a real scenario

Scenario: Nightly regression check against the production baseline
  Given I am on "https://example.org"
  Then I take screenshots for all breakpoints
  Then send screenshots to diffy with name "prod-baseline"
  Given I am on "https://staging.example.org"
  Then I take screenshots for all breakpoints
  Then send screenshots to diffy with name "staging-nightly"
  Then create diffy comparison with name "nightly-2026-07-21"
  Then wait for diffy comparison to complete

Related steps

Back to Diffy Step Definitions