Assert the edit log under a post holds a text: who changed it and the reason given ("This topic was modified … by moderator. Reason: Clearer title").
Examples
Then the edit log of post 1 should show "Reason: Clearer title"
And the edit log of the last post should show "This reply was modified"
Then the edit log of post 1 should show "by moderator"
Then the edit log of the last post should show "Reason: Typo"
And the edit log of post 2 should show "by participant"
Pattern
Then(/^the edit log of (?:post (\d+)|the last post) should show "([^"]*)"$/, …)
Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.