Assert a text is (or is not) in the page when JavaScript is turned off. The page is loaded again in a separate browser context without JavaScript, so the step sees what a search engine, a feed reader or a visitor whose scripts failed gets: the static HTML Gatsby rendered at build time (or on the server, for server-side rendered pages).
Examples
Then I should see "Welcome to Gatsby!" without JavaScript
Then we should see "Hi from the second page" without JavaScript
And I should not see "Rendered in the browser" without JavaScript
Then should see "Page two" without JavaScript
And we should see "A long page" without JavaScript
Pattern
Then(/^(I |we )*should( not)* see "([^"]*)?" without JavaScript$/, …)
Part of @webship-js/gatsby-steps (github.com/webship/gatsby-steps), a step pack for Webship-js 2.0.x.