Then the admin menu should list "Posts"

Assert the admin menu has, or does not have, a top-level entry. The match is a substring of the label, so a count bubble ("Plugins 2") does not matter. The menu shows what the role may use.

Examples

Then the admin menu should list "Posts"
And the admin menu should list "Plugins"
Then the admin menu should not list "Plugins"
And the admin menu should not list "Users"
Then the admin menu should list "Settings"

Pattern

Then(/^the admin menu should( not)* list "([^"]*)"$/, …)

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