Assert the page hydrated without (or, to prove the check, with) hydration errors: React reports a mismatch between the server's HTML and the first render in the browser as an error (#418, #423, #425 in production), which the site's runtime writes to the console. The step waits for the page to be ready, then reads the errors recorded since the page opened.
Examples
Then there should be no hydration errors
And there should be no hydration errors
But there should be hydration errors
Then there should be hydration errors
And there should be hydration errors
Pattern
Then(/^there should be (no )?hydration errors$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.