Assert the scroll position of the page was restored after going back. The position is noted by the last "click the link ... without a full page reload" step, Gatsby stores it in the session storage and puts it back when the visitor returns to the page.
Examples
Then the scroll position should be restored
And the scroll position should be restored
Then scroll position should be restored
But the scroll position should not be restored
And the scroll position should be restored
Pattern
Then(/^(?:the )?scroll position should( not)* be restored$/, …)
Part of @webship-js/gatsby-steps (github.com/webship/gatsby-steps), a step pack for Webship-js 2.0.x.