Then the image "logo" should be preloaded

Whether the page asks for the image ahead of time: a <link rel="preload" as="image"> for it in the head, as the image component adds for an image marked as a priority.

Examples

Then the image "logo" should be preloaded
And the image "logomark" should not be preloaded
Then image "logo" should be preloaded
Then the image "Ivy Example's profile picture" should not be preloaded
And the image "logo" should be preloaded

Pattern

Then(/^(?:the )?image "([^"]*)?" should( not)* be preloaded$/, …)

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