Then editing the page "Protected test page" should be refused with "This page has been protected to prevent editing or other actions."

Assert that the account in the browser may not edit a page: the wiki opens it read only ("View source for <title>") with a message, or a part of it.

Examples

Then editing the page "Protected test page" should be refused with "This page has been protected to prevent editing or other actions."
Then editing the page "Reading test page" should be refused with "Your username or IP address has been blocked."
And editing the page "Protected test page" should be refused with "protected"
Then editing the page "Second test page" should be refused with "This page has been protected"
Then editing the page "Reading test page" should be refused with "has been blocked"

Pattern

Then(/^editing the page "([^"]*)" should be refused with "([^"]*)"$/, …)

Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.