Assert the HubSpot chat widget is (or is not) on the page: its container #hubspot-messages-iframe-container, which the chat script adds. "Present" means in the page; "visible" means shown to the visitor.
Examples
Then the chat widget should be present
And the chat widget should be visible
Then the chat widget should be visible
But the chat widget should not be present
Then chat widget should be present
Pattern
Then(/^(?:the )?chat widget should( not)* be (present|visible)$/, …)
Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.