Assert the error a field of a form shows, by its label (the editor marks the field and says "The page could not be created due to validation errors." above the form).
Examples
Then the "Slug" field should have the error "This field is required."
Then the "Title" field should have the error "This field is required."
And the "Redirect to any URL" field should have the error "Enter a valid URL."
Then the "Parent" field should have the error "This field is required."
Then the "Redirect from" field should have the error "This field is required."
Pattern
Then(/^the "([^"]*)" field should have the error "([^"]*)"$/, …)
Part of @webship-js/wagtail-steps (github.com/webship/wagtail-steps), a step pack for Webship-js 2.0.x.