Protect a test page through the API: only autoconfirmed users (the "confirmed" group and established accounts) or only administrators may edit or move it.
Examples
Given the page "Protected test page" is protected so that only autoconfirmed users can edit it
Given the page "Protected test page" is protected so that only administrators can edit it
And the page "Second test page" is protected so that only administrators can edit it
Given the page "Reading test page" is protected so that only autoconfirmed users can edit it
And the page "History test page" is protected so that only autoconfirmed users can edit it
Pattern
Given(/^the page "([^"]*)" is protected so that only (autoconfirmed users|administrators) can edit it$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.