Assert a category of the sidebar is expanded (its pages shown) or collapsed. A category that holds the page shown is expanded when the page opens; the others follow collapsed in their _category_.json.
Examples
Then the "Getting Started" category in the sidebar should be expanded
And the "Guides" category in the sidebar should be collapsed
Then "Reference" category in the sidebar should be collapsed
But the "Guides" category in the sidebar should be expanded
And the "Getting Started" category in the sidebar should be collapsed
Pattern
Then(/^(?:the )?"([^"]*)?" category in the sidebar should be (expanded|collapsed)$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.