When I pause the background video

Pause or play the background video with its control, and wait until the video is in the state asked for. The step does nothing when it already is.

Examples

When I pause the background video
When I play the background video
When we pause the background video
And I pause the background video
And we play the background video

Pattern

When(/^(I |we )*(pause|play) the background video$/, …)

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