Then the form should have been refused with "Your message needs at least 10 characters."

The app refused the last form a step of the pack sent, and says why: its answer was a refusal (4xx), or the page shows an alert (role="alert"); the message given is in the alert (from its start, without regard to case), or in the refusal's answer.

Examples

Then the form should have been refused with "Your message needs at least 10 characters."
Then the form should have been refused with "Your name is required."
And the form should have been refused with "Wrong email or password"
Then the form should have been refused with "Your message needs"
Then the form should have been refused with "This field is required"

Pattern

Then(/^the form should have been refused with "([^"]*)"$/, …)

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