Assert the HubSpot tracking code is (or is not) installed on the page, optionally for the given portal (account) id. The tracking code is script#hs-script-loader, whose address ends in <portal id>.js.
Examples
Then the tracking code should be installed
And the tracking code should be installed for portal "213255"
Then the tracking code should be installed
But the tracking code should not be installed
Then the tracking code should be installed for portal "0000000"
Pattern
Then(/^(?:the )?tracking code should( not)* be installed(?: for portal "(\d+)")?$/, …)
Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.