When I change the moderation state to "Published"

Move the content item on screen to another moderation state through the content moderation control form: pick the state in "Change to" and apply. The transitions a role may take are the workflow's; an editor that may not publish will not find "Published" in the list.

Examples

When I change the moderation state to "Published"
And I change the moderation state to "Draft"
When we change the moderation state to "In review"
And I change the content moderation state to "Archived"
When I change the moderation state to "Published"

Pattern

When(/^(I |we )*change the (?:content )?moderation state to "([^"]*)"$/, …)

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