Assert a field of the HubSpot form is (or is not) required: the input has required, or its label carries the required marker (.hs-form-required).
Examples
Then the form field "email" should be required
And the form field "firstname" should be required
Then the form field "message" should not be required
But the form field "phone" should not be required
Then form field "email" should be required
Pattern
Then(/^(?:the )?form field "([^"]*)" should( not)* be required$/, …)
Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.