Assert the error the public form shows under a field (by its label) after it was sent ("This is required."), or a part of it.
Examples
Then the public form field "Email" should show the error "This is required."
Then the public form field "Email" should show the error "required"
And the public form field "Email" should show the error "This is required."
Then the public form field "First name" should show the error "This is required."
Then the public form field "Email" should show the error "This is required"
Pattern
Then(/^the public form 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.