Then the page should have the canonical address "/pricing"

Assert the page's canonical address (link rel="canonical") is the given one, written as a path ("/pricing") or a full address.

Examples

Then the page should have the canonical address "/pricing"
And the page should have the canonical address "https://example.com/blog"
Then this page should have the canonical address "/"
And the page should have the canonical address "/contact-us"
Then page should have the canonical address "/about-us"

Pattern

Then(/^(?:the |this )?page should have the canonical address "([^"]*)"$/, …)

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