Assert the saved cookie consent: accepted (every category true), declined (every category false) or saved (a choice was made, whichever it was). It reads the cookie __hs_cookie_cat_pref.
Examples
Then the cookie consent should be accepted
And the cookie consent should be declined
Then the cookie consent should be saved
But the cookie consent should not be saved
Then cookie consent should not be accepted
Pattern
Then(/^(?:the )?cookie consent should( not)* be (accepted|declined|saved)$/, …)
Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.