Then I should be on a 404 page

Assert the page is (or is not) the not-found page: the server answered its address with 404, or the router shows its not-found page for an address it has no route for (an h1.hero__title in <main>). The browser logs "Failed to load resource: … 404" for a page the server answers with 404: a scenario that opens one carries @js-off.

Examples

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

Pattern

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

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