Then the page-data for "/" should be available

Assert the build's page-data.json for a given path is (or is not) reachable, meaning the build produced page data for that route. The home page's page-data lives under the "index" segment (e.g. "/" -> page-data/index/page-data.json), and every other path under its trimmed slug (e.g. "/page-2/" -> page-data/page-2/page-data.json).

Examples

Then the page-data for "/" should be available
Then the page-data for "/page-2/" should be available
And the page-data for "/using-typescript/" should be available
Then the page-data for "/no-such-page/" should not be available
Then page-data for "/about/" should be available

Pattern

Then(/^(?:the )?page-data for "([^"]*)?" should( not)* be available$/, …)

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