Assert which page the sidebar marks as the one shown: its link has aria-current="page" (and the class menu__link--active).
Examples
Then the active page in the sidebar should be "Installation"
And the active page in the sidebar should be "Writing Content"
Then active page in the sidebar should be "Introduction"
And the active page in the sidebar should be "Configuration"
Then the active page in the sidebar should be "Deployment"
Pattern
Then(/^(?:the )?active page in the sidebar should be "([^"]*)?"$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.