Then the page "/dashboard/invoices" should be prefetched

The router fetched a page ahead of a click (a link of it in the window): the App Router fetches the page's payload (header next-router-prefetch), the Pages Router its data or its code. Production builds prefetch; the development server does not.

Examples

Then the page "/dashboard/invoices" should be prefetched
And the page "/dashboard/customers" should be prefetched
Then the page "/login" should not be prefetched
Then page "/users" should be prefetched
And the page "/about" should be prefetched

Pattern

Then(/^(?:the )?page "([^"]*)?" should( not)* be prefetched$/, …)

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