Apply a state action to an item: open the list of its kind filtered by its title, select its row and press the toolbar button. Fails with the message Joomla answers when the action is refused. When the list shows the item already in the state the action leads to (a plugin that is enabled, an article that is published), the step does nothing, so a scenario can start from either state.
Examples
When I publish the article "Review article"
When I unpublish the module "Review module"
When we trash the category "Review category"
And I feature the article "Review article"
When I enable the plugin "System - Page Cache"
Pattern
When(/^(I |we )*(publish|unpublish|archive|trash|feature|unfeature|check in|enable|disable|activate|block|unblock) the (article|category|menu item|module|plugin|extension|user) "([^"]*)?"$/, …)
Part of @webship-js/joomla-steps (github.com/webship/joomla-steps), a step pack for Webship-js 2.0.x.