Then I should be on a 404 page

The page is a not-found page: its document answered 404 (or, after a client-side navigation, the payload of the new page did), or the page carries the "noindex" and the default heading the framework gives a page it cannot find. Error pages carry @js-off in a feature: the browser logs "Failed to load resource" for the 404.

Examples

Then I should be on a 404 page
And we should be on a 404 page
Then I should not be on a 404 page
And I should be on a 404 page
Then we should not be on a 404 page

Pattern

Then(/^(I |we )*should( not)* be on a 404 page$/, …)

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