Then I should see the form error "This is a required field." for the "Product Name" field

Assert a field of an admin form shows (or does not show) a validation error ("This is a required field.").

Examples

Then I should see the form error "This is a required field." for the "Product Name" field
Then I should see the form error "This is a required field." for the "SKU" field
And I should not see the form error "This is a required field." for the "Price" field
Then we should see the form error "This is a required field." for the "Rule Name" field
Then I should see the form error "This is a required field." for the "Page Title" field

Pattern

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

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