Then the categories page should list "Support"

The categories page lists a category, or a category with its subcategory.

Examples

Then the categories page should list "Support"
Then the categories page should list "Announcements"
Then the categories page should list "Support" with the subcategory "Installation"
Then the categories page should list "Off-topic"
Then the categories page should list "General"

Pattern

Then(/^the categories page should list "([^"]*)"(?: with the subcategory "([^"]*)")?$/, …)

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