Assert that a field shows an error under it (or a part of it), after the site refused the form: "not-an-email is invalid.", "A name is required.", "Passwords do not match.".
Examples
Then the field "Email" should show the error "is invalid."
Then the field "Name" should show the error "A name is required."
And the field "Password" should show the error "Passwords do not match."
Then the field "Redirect URL/Message" should show the error "Fill in a message to display."
Then the field "Subject" should show the error "A subject is required."
Pattern
Then(/^the field "([^"]*)" should show the error "([^"]*)"$/, …)
Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.