Then I should see an optimized image

Assert the page has (or has not) an optimized image: an <img> served from /_astro/.

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/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.