Set an option of the component currently selected in the editor, by the visible label of its settings field. Scoped to the component props form (canvas_component_props[...]), so a same-named page field is never hit. Works for text inputs, textareas, selects (match the option text or value), checkboxes and radios; dispatches input/change so the editor auto-saves.
Examples
When I set the Canvas component option "Heading" to "Welcome"
And I set the Canvas component option "Heading level" to "3"
When we set the Canvas component option "Text alignment" to "Center"
And I set the Canvas component option "Background color" to "Primary"
When I set the Canvas component option "Text" to "Read on"
Pattern
When(/^(I |we )*set the Canvas component option "([^"]*)" to "([^"]*)"$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.