Then the route announcer should announce "Hi from the second page"

Assert the route announcer has (or has not) announced a page after a client-side navigation. Gatsby announces "Navigated to <name>", where the name is the text of the first h1 of the page, else the page title; give the name only.

Examples

Then the route announcer should announce "Hi from the second page"
And the route announcer should announce "Welcome to Gatsby!"
Then the route announcer should not announce "Page two"
Then route announcer should announce "A long page"
And the route announcer should announce "404: Not Found"

Pattern

Then(/^(?:the )?route announcer should( not)* announce "([^"]*)?"$/, …)

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