Then the view should be the 404 error page

The view is the app's error page for a status: its first heading carries the status (Nuxt's error page shows it, as most do), the page loaded with that status when it came by a page load, the app's own error says it when the app has one (Nuxt's payload), and the page says the message, when one is given. The step waits for it.

Examples

Then the view should be the 404 error page
Then the view should be the 404 error page saying "Post not found"
And the view should be the 500 error page saying "Internal Server Error"
Then the view should be the 403 error page
Then the view should be the 404 error page saying "Page not found"

Pattern

Then(/^the view should be the (\d{3}) error page(?: saying "([^"]*)")?$/, …)

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