When I click the link "Invoices" without a full page reload

Click a link by its name and let the router show the new page in the same document: the step waits for the link to be hydrated, then for the navigation to finish, and fails if the browser loaded a new document.

Examples

When I click the link "Invoices" without a full page reload
And we click the link "Customers" without a full page reload
When I click the link "Home" without a full page reload
When I click the link "Users List" without a full page reload
And I click the link "About" without a full page reload

Pattern

When(/^(I |we )*click the link "([^"]*)?" without a full page reload$/, …)

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