The current page of a pagination (its active item, aria-current="page") or of a breadcrumb (its last, active item) 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 "Archive pages" pagination should be "2"
Then the current page of the breadcrumb should be "Data"
Then the current page of the "Shop breadcrumb" breadcrumb should be "Garden chair"
Then the current page of the "Gallery pages" pagination should be "3"
Pattern
Then(/^the current page of the (?:"([^"]*)" )?(pagination|breadcrumb) should be "([^"]*)"$/, …)
Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.