Then the list should have 2 items

Assert how many items the list says it has ("3 items, 1 page in total"; "No Results Found" is 0).

Examples

Then the list should have 2 items
Then the list should have 1 item
And the list should have 0 items
Then the list should have 5 items
Then the list should have 3 items

Pattern

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

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