Assert the blog lists a given number of posts. The count is polled for the wait budget, so a listing that is still rendering is waited for.
Examples
Then the blog should list 2 posts
And the blog should list 1 post
Then the blog should list 5 posts
Then blog should list 0 posts
And the blog should list 10 posts
Pattern
Then(/^(?:the )?blog should list (\d+) posts?$/, …)
Part of @webship-js/squarespace-steps (github.com/webship/squarespace-steps), a step pack for Webship-js 2.0.x.