Then I should see an optimized image

Assert an optimized responsive image wrapper is (or is not) present on the page (gatsby-plugin-image renders a <div data-gatsby-image-wrapper> around every optimized image).

Examples

Then I should see an optimized image
Then we should see an optimized image
And I should not see an optimized image
Then should see an optimized image
And we should see an optimized image

Pattern

Then(/^(I |we )*should( not)* see an optimized image$/, …)

Part of @webship-js/gatsby-steps (github.com/webship/gatsby-steps), a step pack for Webship-js 2.0.x.