When I click "Next" in the CMS modal

Click a button or a link in the CMS modal or the CMS sideframe. In the modal, the buttons of its footer ("Save", "Next", "Create", "Cancel", "Yes, I'm sure") are tried first, then the content of its iframe; in the sideframe, the content of its iframe.

Examples

When I click "Next" in the CMS modal
When I click "Save" in the CMS modal
And we click "Cancel" in the django CMS modal
When I click "editor" in the CMS sideframe
And click "New sub page" in the CMS modal

Pattern

When(/^(I |we )*click "([^"]*)" in the (?:django )?CMS (modal|sideframe)$/, …)

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