Whether the image comes from the app's image optimizer (/_next/image), which sends a size made for the screen (the widths of its srcset) in a modern format. An SVG and an image marked as unoptimized come as they are.
Examples
Then the image "Ivy Example's profile picture" should be optimized
And the image "logo" should not be optimized
Then image "Screenshots of the dashboard project showing desktop version" should be optimized
Then the image "logomark" should not be optimized
And the image "Oak Example's profile picture" should be optimized
Pattern
Then(/^(?:the )?image "([^"]*)?" should( not)* be optimized$/, …)
Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.