Then the navbar link "Blog" should be active

Assert a link of the navbar is (or is not) marked as the active one: the site marks the item of the part of the site the page belongs to ("Docs" on a page of the docs, "Blog" on the blog) with navbar__link--active and aria-current="page".

Examples

Then the navbar link "Blog" should be active
And the navbar link "Docs" should not be active
Then navbar link "Docs" should be active
But the navbar link "Blog" should not be active
And the navbar link "Docs" should be active

Pattern

Then(/^(?:the )?navbar link "([^"]*)?" should( not)* be active$/, …)

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