Then the list should have 3 pages

Assert how many pages a long list has: the numbered items of its pager.

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 4 pages

Pattern

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

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