Wait for the page to come to rest: no page load in progress, no request in flight, no frame asked for (the springs and tweens of a motion move by frames), no animation or transition running, the app has taken the page over when it can, and nothing has changed for two frames.
Examples
When I wait for the app to come to rest
And I wait for the app to come to rest
When we wait for the app to come to rest
Then I wait for the app to come to rest
Given I wait for the app to come to rest
Pattern
When(/^(?:I |we )?wait for the app to come to rest$/, …)
Part of @webship-js/svelte-steps (github.com/webship/svelte-steps), a step pack for Webship-js 2.0.x.