Then the "Title" field should be marked as an error

Assert a field of a form is (or is not) marked as an error after a failed submission: the control carries the error class.

Examples

Then the "Title" field should be marked as an error
Then the "Body" field should not be marked as an error
And the "Name" field should be marked as an error
Then the "Menu link title" field should be marked as an error
And the "Path" field should not be marked as an error

Pattern

Then(/^the "([^"]*)" field should( not)* be marked as an error$/, …)

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