Then the page should be prerendered

Whether the server sends the page from what it prerendered (at build time or by revalidation) or renders it for each request: the headers of its answer (x-nextjs-prerender, x-nextjs-cache, a shared cache time in Cache-Control) and, for the Pages Router, the page's own data (a page optimized to static HTML, or one with getStaticProps; getServerSideProps renders for each request).

Examples

Then the page should be prerendered
Then the page should not be prerendered
And the page should be prerendered
And page should not be prerendered
Then the page should be prerendered

Pattern

Then(/^(?:the )?page should( not)* be prerendered$/, …)

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