Close the topic on screen, or open it again, from its admin menu; the topic gets its state back after the scenario.
Then the topic should be closed
Then the topic should be open
Examples
When I close the topic
When I open the topic again
When we close the topic
When I close the topic
When I open the topic again
Pattern
When(/^(?:I|we) (close the topic|open the topic again)$/, …)
Part of @webship-js/discourse-steps (github.com/webship/discourse-steps), a step pack for Webship-js 2.0.x.