Then the cookie banner should be visible

Assert the HubSpot cookie banner is (or is not) visible. The negative form passes when the banner was answered (it stays in the page, hidden) or is absent.

Examples

Then the cookie banner should be visible
Then the cookie banner should not be visible
And the cookie banner should be visible
But the cookie banner should not be visible
Then I should see the cookie banner

Pattern

Then(/^(?:(?:the )?cookie banner should( not)* be visible|(?:I |we )*should( not)* see the cookie banner)$/, …)

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