Make a test page with wikitext, through the wiki's API as the administrator of the users registry (worldParameters.wikiAdmin). The page is deleted after the scenario. Run again, it makes a new revision of the same test page.
Examples
Given the page "Reading test page" has the text:
Given the page "Category:Test guides" has the text:
And the page "Second test page" has the text:
Given the page "Talk:Reading test page" has the text:
Given the page "History test page" has the text:
Pattern
Given(/^the page "([^"]*)" has the text:$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.