Assert the sitemap of the site (/sitemap.xml, or the one given: each language writes its own, /fr/sitemap.xml) lists (or does not list) a page, by its path. The sitemap names each page by the site's url in the configuration, so only the path is compared.
Examples
Then the sitemap should list "/docs/intro"
And the sitemap should list "/blog/version-2-0"
But the sitemap should not list "/docs/no-such-page"
Then the sitemap at "/fr/sitemap.xml" should list "/fr/docs/intro"
And sitemap should list "/docs/1.0/intro"
Pattern
Then(/^(?:the )?sitemap(?: at "([^"]*)")? should( not)* list "([^"]*)?"$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.