The current page of a pagination (its active item, aria-current="page") or of a breadcrumb (its last item, or the one with aria-current="page") is the one named. Without a name, the first pagination or breadcrumb on the page.
Examples
Then the current page of the pagination should be "1"
Then the current page of the "Results pages" pagination should be "1"
Then the current page of the breadcrumb should be "Notebooks"
Then the current page of the "Breadcrumb" breadcrumb should be "Notebooks"
Then the current page of the "Results pages" pagination should be "1"
Pattern
Then(/^the current page of the (?:"([^"]*)" )?(pagination|breadcrumb) should be "([^"]*)"$/, …)
Part of @webship-js/uikit-steps (github.com/webship/uikit-steps), a step pack for Webship-js 2.0.x.