Enable or disable an installed module in the Module manager, confirm the dialog a disable asks for, and wait until the card shows the new state. (After a disable the back office can leave a dimmed page behind its closed dialog; the step reloads the Module manager then, as a person has to.)
Examples
When I disable the module "Banner"
When I enable the module "Banner"
When we disable the module "ps_banner"
And I enable the module "ps_banner"
When disable the module "Banner"
Pattern
When(/^(I |we )*(enable|disable) the module "([^"]*)"$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.