The error a field of the form shows (after a save or a publication the form refused), by its label.
Examples
Then the "Title" field should show the error "This field is required."
Then the "Confirm Password" field should show the error "Passwords do not match."
And the "Title" field should show the error "This field is required."
Then the "Email" field should show the error "This field is required."
Then the "Layout" field should show the error "This field is required."
Pattern
Then(/^the "([^"]*)" field should show the error "([^"]*)"$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.