Then I should see the field error "This is a required field."

Assert the store shows (or does not show) a validation error under a field: of a store form (sign-in, registration, contact, review, newsletter, the product options) or of the checkout. With for "…" the error must belong to the field with that label.

Examples

Then I should see the field error "This is a required field."
Then I should see the field error "This is a required field." for "First Name"
And I should not see the field error "This is a required field." for "Email"
Then we should see the field error "Please enter a valid email address (Ex: johndoe@domain.com)."
Then I should see the field error "Please select one of each of the ratings above."

Pattern

Then(/^(I |we )*should( not)* see the field error "([^"]*)"(?: for "([^"]*)")?$/, …)

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