Then the navbar link "Source" should open "https://example.com/source" in a new tab

Assert a link of the navbar (an item of the navbar or of one of its menus) leads to an address on another site and opens it in a new tab (target="_blank"), without following it.

Examples

Then the navbar link "Source" should open "https://example.com/source" in a new tab
And the navbar link "Forum" should open "https://example.com/forum" in a new tab
Then navbar link "Source" should open "https://example.com/source" in a new tab
And the navbar link "Source" should open "https://example.com/source" in a new tab
Then the navbar link "Forum" should open "https://example.com/forum" in a new tab

Pattern

Then(/^(?:the )?navbar link "([^"]*)?" should open "([^"]*)?" in a new tab$/, …)

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