Wait until the page is ready, by the site's own signals: the document is loaded, the site has hydrated (<html data-has-hydrated="true">), no script of a page is still loading, the progress bar of a page change is gone and no request of the page is running, for a moment. Fails, saying what the page was still doing, when that takes too long. The steps of this pack already wait for it; this is the wait for a project's own steps.
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
When wait for the page to be ready
Pattern
When(/^(I |we )*wait for the page to be ready$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.