Lock or unlock the topic on screen with its quick moderator tools: the tool, then the confirmation the board asks in the page. The page loads again with the topic in its new state.
Examples
When I lock the topic
When I unlock the topic
And we lock the topic
And we unlock the topic
Then I unlock the topic
Pattern
When(/^(?:I|we) (lock|unlock) the topic$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.