When I lock the page

Lock or unlock the page in the editor ("Lock" in the status panel; "Unlock" in the message of a locked page). A locked page can be changed only by the account that locked it (and by one with the permission to unlock).

Examples

When I lock the page
When I unlock the page
And we lock the page
When we unlock the page
Then I unlock the page

Pattern

When(/^(?:I|we) (lock|unlock) the page$/, …)

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