Assert which version of the docs the page belongs to, by its label: the badge above the title ("Version: 2.0"), or the version the page's metadata names ("current" for the unreleased version).
Examples
Then the page should belong to the version "2.0"
And the page should belong to the version "Next"
Then page should belong to the version "1.0"
And the page should belong to the version "2.0"
Then the page should belong to the version "1.0"
Pattern
Then(/^(?:the )?page should belong to the version "([^"]*)?"$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.