When I go back without a full page reload

Go back or forward in the browser's history, and assert the page came from the same document (the router keeps the earlier pages), then wait until it is shown and ready.

Examples

When I go back without a full page reload
And I go forward without a full page reload
When we go back without a full page reload
When go forward without a full page reload
Then I go back without a full page reload

Pattern

When(/^(I |we )*go (back|forward) without a full page reload$/, …)

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