Assert the error of one field of a refused form, by the field's label (or a part of the error).
Examples
Then the field "Question text" should have the error "This field is required."
Then the field "Date published" should have the error "This field is required."
And the field "Name" should have the error "Group with this Name already exists."
Then the field "Question text" should not have the error "This field is required."
And the field "New password confirmation" should have the error "The two password fields didn’t match."
Pattern
Then(/^the field "([^"]*)" should( not)* have the error "([^"]*)"$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.