When I choose the "Size" option "M"

Choose a value of an option of a configurable product by clicking its swatch ("Size" "M", "Color" "Blue").

Examples

When I choose the "Size" option "M"
When I choose the "Color" option "Blue"
And I choose the "Size" option "XL"
When we choose the "Color" option "Orange"
When choose the "Size" option "S"

Pattern

When(/^(I |we )*choose the "([^"]*)" option "([^"]*)"$/, …)

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