Then I should be on the 404 page

Assert the current page is (or is not) the "page not found" answer of the site: the URL is requested again with the cookies of the session and must answer with HTTP status 404. This holds for the built-in error page and for an error page configured in the site configuration alike.

Examples

Then I should be on the 404 page
Then I should not be on the 404 page
And we should be on the 404 page
Then I should be on the page not found page
And I should not be on the page not found page

Pattern

Then(/^(I |we )*should( not)* be on the (?:404|page not found) page$/, …)

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