Then the search should find 2 results

Assert how many results the search page lists: an exact number, at least a number, or none (the "Your search yielded no results" page).

Examples

Then the search should find 2 results
Then the search should find at least 3 results
And the search should find no results
Then the search should find 1 result
And the search should find at least 1 result

Pattern

Then(/^the search should find (no|at least \d+|\d+) results?$/, …)

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