Wait until the last comparison created in this scenario is complete in Diffy. It polls every DIFFY_POLL_INTERVAL seconds, for at most DIFFY_MAX_WAIT seconds, and fails at once when Diffy stops the comparison. The result and the report link are added to the test report.
Diffy API: GET diffs/{id} (polling)
Examples
Then wait for the visual comparison to complete
And wait for the visual comparison to complete
Then I wait for the visual comparison to complete
Then we wait for the visual comparison to complete
And I wait for the visual comparison to complete
And we wait for the visual comparison to complete
But I wait for the visual comparison to complete
Pattern
Then(/^(I |we )*wait for (?:the )?visual comparison to complete$/, …)
Part of @webship-js/diffy-steps (github.com/webship/diffy-steps), a step pack for Webship-js 2.0.x.