The page shows the error page of an error boundary with the given words, and an error did happen: the document answered with a server error, the console reported the production error of a failed server render, a request of the page failed on the server, or the page raised an error. With "not", the words are not on the page. Error pages carry @js-off in a feature.
Examples
Then the error page should show "Something went wrong!"
And the error page should show "Try again"
Then the error page should not show "Something went wrong!"
Then error page should show "Something went wrong!"
And the error page should not show "Application error"
Pattern
Then(/^(?:the )?error page should( not)* show "([^"]*)?"$/, …)
Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.