Let Diffy capture two environments of the project and compare them. The environments are prod, stage, dev, baseline and custom (long names work as well). For "custom" the address comes from DIFFY_ENV1_URL or DIFFY_ENV2_URL, with DIFFY_ENV1_USER and DIFFY_ENV1_PASS (or ENV2) for basic authentication. DIFFY_COMMIT_SHA is sent along for a GitHub check. An optional name labels the comparison.
Diffy API: POST projects/{id}/compare
Examples
Then visually compare "prod" with "stage"
Then visually compare "production" with "staging"
Then visually compare "prod" with "dev"
Then visually compare "stage" with "dev" with name "release-2.0"
Then visually compare "prod" with "baseline"
Then visually compare "baseline" with "custom"
Then visually compare "custom" with "custom"
Then visually compare "production" with "development"
Pattern
Then(/^(I |we )*visually compare "([^"]*)" with "([^"]*)"(?: with name "([^"]*)")?$/, …)
Part of @webship-js/diffy-steps (github.com/webship/diffy-steps), a step pack for Webship-js 2.0.x.