Then the form should have a field "email"

Assert the HubSpot form does (or does not) have a field, found by its internal property name, its label or its placeholder.

Examples

Then the form should have a field "email"
And the form should have a field "firstname"
Then the form should have a field "Company name"
But the form should not have a field "fax"
Then the form should not have a field "password"

Pattern

Then(/^(?:the )?form should( not)* have a field "([^"]*)"$/, …)

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