Run a repair tool of the forums by its name on the tools screen, and wait for its answer ("… Complete!").
Examples
When I run the forum repair tool "Recount topics in each forum"
And I run the forum repair tool "Recount replies in each topic"
When we run the forum repair tool "Recalculate last activity in each topic and forum"
When I run the forum repair tool "Recount topics for each user"
And we run the forum repair tool "Recalculate private and hidden forums"
Pattern
When(/^(I |we )*run the forum repair tool "([^"]*)"$/, …)
Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.