When I create a "Custom" site module titled "Review module" with the text "Review text." in the "sidebar-right" position

Create a site module through the administrator form: pick the module type from the list of types, fill the title, the text of the editor (for a Custom module) and the position, then Save & Close. A new module is published on all pages.

Examples

When I create a "Custom" site module titled "Review module" with the text "Review text." in the "sidebar-right" position
When we create a "Custom" site module titled "Review notice" with the text "A notice." in the "sidebar-right" position
And I create a "Custom" site module titled "Review banner" with the text "A banner." in the "bottom-b" position
When create a "Custom" site module titled "Review panel" with the text "A panel." in the "sidebar-right" position
And we create a "Custom" site module titled "Review box" with the text "A box." in the "sidebar-right" position

Pattern

When(/^(I |we )*create an? "([^"]*)?" site module titled "([^"]*)?"(?: with the text "([^"]*)?")?(?: in the "([^"]*)?" position)?$/, …)

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