Assert a page has (or has not) been prefetched by the current page. Astro prefetches a link on hover (and, with data-astro-prefetch="viewport", when it is in the viewport) with <link rel="prefetch" href="...">, or with a speculationrules script where the browser supports it.
Examples
Then the page "/about/" should be prefetched
And the page "/blog/" should be prefetched
But the page "/contact/" should not be prefetched
Then page "/about/" should be prefetched
And the page "/about/" should not be prefetched
Pattern
Then(/^(?:the )?page "([^"]*)?" should( not)* be prefetched$/, …)
Part of @webship-js/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.