Make sure a layout has no unsaved changes left in its editor by an earlier scenario: when the editor reports unsaved changes, they are cancelled. For the start of a scenario that edits a layout, so it can run again after a failed run.
Examples
Given the "Default Layout" layout has no unsaved changes
Given the "Home page" layout has no unsaved changes
And the "Dashboard" layout has no unsaved changes
Given the "Default Administrative Layout" layout has no unsaved changes
And the "Home page" layout has no unsaved changes
Pattern
Given(/^the "([^"]*)" layout has no unsaved changes$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.