Then the hero title should be "Starts With You"

Assert the page's hero title is (or is not) the given text. The hero title is the first level-one heading of the page content; headings in the header, the footer and in list items (blog posts, products) are left out. The text is compared after collapsing whitespace and is case sensitive.

Examples

Then the hero title should be "Starts With You"
And the hero title should be "Contact"
Then the hero title should be "Scents in every shape"
But the hero title should not be "Journal"
Then hero title should be "Welcome"

Pattern

Then(/^(?:the )?hero title should( not)* be "([^"]*)"$/, …)

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