Assert the post on the public site lists a category or a tag, by name: the links of the theme's category list and of its tag list, told apart (a block theme's Post Terms block of each taxonomy, a classic theme's rel="category" and rel="tag" links).
Examples
Then the post should be in the category "Reports"
And the post should be in the tag "webship"
Then the post should not be in the category "News"
And the post should not be in the tag "release"
Then the post should be in the category "Uncategorized"
Pattern
Then(/^the post should( not)* be in the (category|tag) "([^"]*)"$/, …)
Part of @webship-js/woocommerce-steps (github.com/webship/woocommerce-steps), a step pack for Webship-js 2.0.x.