Overview
This documentation page describes Diffy Step Definitions for Webship JS 2.0.x. The feature enables opt-in visual-regression testing capabilities, allowing developers to capture full-page Playwright screenshots at multiple breakpoints and upload them to Diffy for comparison via REST API.
Key characteristic: "Kept in a separate folder (tests/step-definitions-diffy/) so the default npm test run does not load them."
Available Step Definitions
- Then I take screenshot
- Then I take screenshots for all breakpoints
- Then compare diffy "ENV1" with "ENV2"
- Then create diffy comparison
- Then create diffy comparison with name "value"
- Then create diffy screenshot from "environment name" environment
- Then send screenshots to diffy with name "value"
- Then upload folder "URL" to diffy as "snapshotName"
- Then wait for diffy comparison to complete
- When I resize window to "number"