Then the page should have a route announcer

Assert the page has (or has not) Astro's route announcer: the live region (.astro-route-announcer, aria-live) that tells screen readers about a navigation. Astro adds it after the first client-side navigation.

Examples

Then the page should have a route announcer
And the page should have a route announcer
But the page should not have a route announcer
Then page should have a route announcer
And the page should have a route announcer

Pattern

Then(/^(?:the )?page should( not)* have a route announcer$/, …)

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