Delete, or duplicate, a component of the page through the contextual menu of its row in the Layers panel, and wait until the panel shows the result. The change is pending until it is published.
Examples
When I delete the "Heading" component in the Canvas Layers
And I duplicate the "Heading" component in the Canvas Layers
When we delete the "Image" component in the Canvas Layers
And we duplicate the "Text" component in the Canvas Layers
Then I delete the "Button" component in the Canvas Layers
Pattern
When(/^(I |we )*(delete|duplicate) the "([^"]*)" component in the Canvas Layers$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.