Assert a field of the Squarespace form block does (or does not) show an error. After a failed submission the field has aria-invalid="true" and an error message.
Examples
Then the form should show an error for the field "Email"
And the form should show an error for the field "Message"
And the form should show an error for the field "First Name"
But the form should not show an error for the field "Email"
And the form should not show an error for the field "Inquiry"
Pattern
Then(/^(?:the )?form should( not)* show an error for the field "([^"]*)"$/, …)
Part of @webship-js/squarespace-steps (github.com/webship/squarespace-steps), a step pack for Webship-js 2.0.x.