Then the "macOS" tab should be selected

Assert a tab is (or is not) the selected one (aria-selected="true"): in the first group of tabs that has it, or in every group that has it (tabs of one group choose together; after a reload the site gives back the tab chosen last, once the page has hydrated).

Examples

Then the "macOS" tab should be selected
And the "macOS" tab should be selected in every group
But the "Linux" tab should not be selected
Then "TypeScript" tab should be selected
And the "Windows" tab should not be selected in every group

Pattern

Then(/^(?:the )?"([^"]*)?" tab should( not)* be selected( in every group)?$/, …)

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