When I open the live preview

Open or close the live preview beside the form (its toggle), and wait for the front end to load in its frame.

Examples

When I open the live preview
When I close the live preview
And I open the live preview
And I close the live preview
When I open the live preview

Pattern

When(/^I (open|close) the live preview$/, …)

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