Then the 404 page should be available

Assert the 404 page is (or is not) among the pages the build produced: 404.html is served and its page-data exists.

Examples

Then the 404 page should be available
And the 404 page should be available
But the 404 page should not be available
Then 404 page should be available
And the 404 page should be available

Pattern

Then(/^(?:the )?404 page should( not)* be available$/, …)

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