Assert the document title does (or does not) match exactly, e.g. as set by gatsby-plugin-react-helmet / Head export.
Examples
Then the page title should be "Home Page"
Then the page title should be "404: Not Found"
And the page title should not be "Page two"
Then the page title should be "Using TypeScript"
Then page title should be "Using SSR"
Pattern
Then(/^(?:the )?page title should( not)* be "([^"]*)?"$/, …)
Part of @webship-js/gatsby-steps (github.com/webship/gatsby-steps), a step pack for Webship-js 2.0.x.