Then the list should have 3 pages

How many pages the list has, as its pagination shows them.

Examples

Then the list should have 3 pages
Then the list should have 2 pages
And the list should have 1 page
Then the list should have 3 pages
Then the list should have 2 pages

Pattern

Then(/^the list should have (\d+) pages?$/, …)

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