Then "Home" should be the current navigation item

Assert a given navigation item is (or is not) marked as the current page (Squarespace marks the active link with aria-current="page" and an --active modifier class).

Examples

Then "Home" should be the current navigation item
Then "Shop" should be the current navigation item
And "About" should be the current navigation item
But "Blog" should not be the current navigation item
Then "Contact" should be the current navigation item

Pattern

Then(/^"([^"]*)?" should( not)* be the current navigation item$/, …)

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