Then send screenshots to diffy with name "value"

This step uploads the batch of screenshots collected in the current scenario to Diffy as a single named custom snapshot. Each image in the buffer is posted to the Diffy API along with its page URL slug and breakpoint width so that Diffy can map it to the correct page and viewport. The snapshot name you provide (for example "baseline" or "after-deploy") identifies this batch inside the Diffy project and is the name you will reference when creating comparisons.

On success the step clears the in-memory screenshot buffer and removes any PNG files written to DIFFY_SCREENSHOTS_DIR during the scenario. The returned snapshot ID is stored internally so that subsequent create diffy comparison steps can reference it without extra configuration. You must call at least one I take screenshot or I take screenshots for all breakpoints step before this one, or the step throws an error. Both DIFFY_API_KEY and DIFFY_PROJECT_ID must be configured.

Accepted phrasings

Then I send screenshots to diffy with name "baseline"
Then we send screenshots to diffy with name "baseline"
Then send screenshots to diffy with name "baseline"

Examples

Then send screenshots to diffy with name "baseline"
Then send screenshots to diffy with name "after-deploy"
Then send screenshots to diffy with name "homepage-release-2.0"
Then send screenshots to diffy with name "smoke-run"

In a real scenario

Scenario: Upload before and after snapshots then create a named comparison
  Given I am on "https://example.org"
  Then I take screenshots for all breakpoints
  Then send screenshots to diffy with name "before-deploy"
  Given I am on "https://staging.example.org"
  Then I take screenshots for all breakpoints
  Then send screenshots to diffy with name "after-deploy"
  Then create diffy comparison with name "release-3.0-regression"
  Then wait for diffy comparison to complete

Related steps

Back to Diffy Step Definitions