Then the app should show its 404 page

The app shows its page for a status: the page loaded with that status when it came by a page load; reached inside the app (no status), the view's first heading or the page's title says the code; and the page says the message, when one is given. The step waits for it.

Examples

Then the app should show its 404 page
Then the app should show its 404 page saying "Post not found"
And the app should show its 500 page saying "Something went wrong"
Then the app should show its 403 page
Then the app should show its 404 page saying "Page not found"

Pattern

Then(/^the app should show its (\d{3}) page(?: saying "([^"]*)")?$/, …)

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