Then the content on the page should show the image "pixel.png"

Assert the content on the page shows (or does not show) an image of an image field, by its file name, and that the image loaded.

Examples

Then the content on the page should show the image "pixel.png"
Then the content on the page should not show the image "pixel.png"
And the content on the page should show the image "hive.jpg"
Then the content on the page should not show the image "logo.svg"
And the content on the page should show the image "frame.webp"

Pattern

Then(/^the content on the page should( not)* show the image "([^"]*)"$/, …)

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