Wait until the page has finished its own work: the document is loaded, the site's list of pending JavaScript is empty, its module loader loads no module and every part of the page built with React is mounted. The steps of this pack wait like this after every action; the step is for a project's own steps that act on a page without waiting.
Examples
When I wait for the page to be ready
And we wait for the page to be ready
Then I wait for the page to be ready
Given I wait for the page to be ready
When we wait for the page to be ready
Pattern
When(/^(I |we )*wait for the page to be ready$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.