Follow a moderation link of a post of the page, by its number or the last one: unapprove or approve it, mark it as spam or not, put it in the trash or restore it. The step checks the post took the state.
Examples
When I unapprove the last post
And I approve the last post
When I spam post 2
When we unspam post 2
And I trash the last post
When I restore the last post
Pattern
When(/^(I |we )*(unapprove|approve|spam|unspam|trash|restore) (?:post (\d+)|the last post)$/, …)
Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.