Create a published Canvas page holding one component, configured from a data table of | prop | value | rows (prop names as in the component's definition; "true"/"false" and numbers are coerced to the declared type). The page is created empty, the component appended with the library defaults plus the given values, and the result published, all through the authoring API. Pass the component's machine id or its visible name. Without a table (no trailing colon) the component keeps its library defaults.
Examples
When I create a Canvas page "Welcome" at "/welcome" with the "sdc.mercury.heading" component:
And I create a Canvas page "Intro" at "/intro" with the "Heading" component:
When we create a Canvas page "Quote" at "/quote" with the "Blockquote" component:
And I create a Canvas page "Cards" at "/cards" with the "Card" component:
When I create a Canvas page "Promo" at "/promo" with the "Hero CTA" component:
Pattern
When(/^(I |we )*create a Canvas page "([^"]*)" at "([^"]*)" with the "([^"]*)" component:$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.