Then I should see a hydrated page

Assert the client-side runtime has (or has not) mounted and hydrated the current page. The framework exposes a window.___gatsby root container once React has attached, which distinguishes a real hydrated page from a plain static HTML fallback (e.g. during a failed build).

Examples

Then I should see a hydrated page
Then we should see a hydrated page
And I should not see a hydrated page
Then should see a hydrated page
And we should see a hydrated page

Pattern

Then(/^(I |we )*should( not)* see a hydrated page$/, …)

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