When I discard the layout changes

Discard the unsaved changes of the layout of the content item on screen, through core's own form (/node/<nid>/layout/discard-changes). Layout Builder keeps unsaved changes for the user until they are saved or discarded, so a scenario that stopped half way leaves some behind; a scenario that starts with this step always starts from the saved layout.

Examples

When I discard the layout changes
And I discard the layout changes
When we discard the layout changes
Given I discard the unsaved layout changes
And we discard the unsaved layout changes

Pattern

When(/^(I |we )*discard the (?:unsaved )?layout changes$/, …)

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