When I wait for the page to be ready

Wait until the page is ready: loaded and hydrated, no part of it showing a loading state, and no request of the app running (see nextjs-helpers.js). Fails with what the page was still doing when the time ran out.

Examples

When I wait for the page to be ready
And I wait for the page to be ready
When we wait for the page to be ready
Then I wait for the page to be ready
Given we wait for the page to be ready

Pattern

When(/^(I |we )*wait for the page to be ready$/, …)

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