Assert an event of Astro's client router has (or has not) fired in the current document. A client-side navigation keeps the record, a page load starts it again. astro:page-load fires on the first load and after every navigation, so a page without <ClientRouter /> never fires it.
Examples
Then the "astro:page-load" event should have fired
And the "astro:after-swap" event should have fired
But the "astro:after-swap" event should not have fired
Then the "astro:before-swap" event should have fired
And the "astro:page-load" event should not have fired
Pattern
Then(/^the "(astro:[a-z-]+)" event should( not)* have fired$/, …)
Part of @webship-js/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.