Activate or deactivate a plugin on the Plugins screen, with its row action. WordPress answers with the notice "Plugin activated." or "Plugin deactivated."
Examples
When I activate the "Hello Dolly" plugin
When we deactivate the "Hello Dolly" plugin
And I activate the "Akismet Anti-spam: Spam Protection" plugin
When I deactivate the "Akismet Anti-spam: Spam Protection" plugin
And we activate the "Hello Dolly" plugin
Pattern
When(/^(I |we )*(activate|deactivate) the "([^"]*)" plugin$/, …)
Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.