Assert every optimized image has loaded in the browser (it is decoded and has a width). Lazy images load when they near the viewport, so scroll to them first.
Examples
Then every optimized image should be loaded
And every optimized image should be loaded
But every optimized image should not be loaded
Then all optimized images should be loaded
And every optimized image should be loaded
Pattern
Then(/^(?:every|all) optimized images? should( not)* be loaded$/, …)
Part of @webship-js/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.