Then the search should find 2 results

Assert the search found a given number of results (the first page of results; Squarespace loads more with a "See more" button).

Examples

Then the search should find 2 results
And the search should find 1 result
Then the search should find 5 results
Then search should find 0 results
And the search should find 10 results

Pattern

Then(/^(?:the )?search should find (\d+) results?$/, …)

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