Then the page generator version should start with "5"

Assert the version the page was (or was not) generated by: the first number of the generator meta tag ("5.16.1" in "Gatsby 5.16.1"). "start with" matches whole parts from the start, so "5" and "5.16" match "5.16.1", but "16" and "5.1" do not. "be" wants the whole version.

Examples

Then the page generator version should start with "5"
Then the page generator version should start with "5.16"
And the page generator version should be "5.16.1"
But the page generator version should not start with "4"
Then page generator version should start with "5"

Pattern

Then(/^(?:the )?page generator version should( not)* (be|start with) "([^"]*)"$/, …)

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