Then the menu link "Pricing" should link to "/pricing"

Assert a menu link does (or does not) lead to the given address, written as a path ("/pricing") or a full address.

Examples

Then the menu link "Pricing" should link to "/pricing"
And the menu link "Blog" should link to "/blog"
Then the menu link "Contact" should link to "https://example.com/contact"
But the menu link "Home" should not link to "/pricing"
Then menu link "About" should link to "/about-us"

Pattern

Then(/^(?:the )?menu link "([^"]*)" should( not)* link to "([^"]*)"$/, …)

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