Then the hero call-to-action button should link to "/take-action"

Assert the page's first button (a Squarespace button block) does, or does not, link to the given address. The address is compared as written in the markup, so a relative link is "/shop" and not the full URL.

Examples

Then the hero call-to-action button should link to "/take-action"
And the hero call-to-action button should link to "/contact"
Then the hero call-to-action button should not link to "/about"
Then the hero CTA should link to "/news"
Then hero call-to-action button should link to "/"

Pattern

Then(/^(?:the )?hero (?:call-to-action button|CTA) should( not)* link to "([^"]*)"$/, …)

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