Assert the page has (or has not) scoped styles: Astro marks the elements of a component that has a <style> with data-astro-cid-<hash> and writes the rules against the same attribute.
Examples
Then the page should have scoped styles
And the page should have scoped styles
But the page should not have scoped styles
Then page should have scoped styles
And the page should have scoped styles
Pattern
Then(/^(?:the )?page should( not)* have scoped styles$/, …)
Part of @webship-js/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.