Unpin the topic on screen ("Un-Pin Topic…" of its admin menu, then the pin dialog's "Un-Pin Topic"); the topic gets its state back after the scenario.
Then the topic should not be pinned
Then the topic should show the action "Unpinned"
And I go to the "Latest" topic list
Examples
When I unpin the topic
When we unpin the topic
When I unpin the topic
When I unpin the topic
When I unpin the topic
Pattern
When(/^(?:I|we) unpin the topic$/, …)
Part of @webship-js/discourse-steps (github.com/webship/discourse-steps), a step pack for Webship-js 2.0.x.