Then the forum index should list the forum "Showcase"

Assert the forum index lists (or does not list) a forum by its name, as a row or as a subforum under one; with a category, under that category.

Examples

Then the forum index should list the forum "Showcase"
And the forum index should list the forum "General discussion" in the category "Community"
Then the forum index should not list the forum "Staff room"
And the forum index should not list the forum "Members lounge"
Then the forum index should list the forum "Help and support" in the category "Community"

Pattern

Then(/^the forum index should( not)* list the forum "([^"]*)"(?: in the category "([^"]*)")?$/, …)

Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.