Then the search should find 2 results

Assert what the last search found: the count the list writes beside the search box ("2 results (24 total)"), with the total when the step gives it.

Examples

Then the search should find 2 results
Then the search should find 2 results of 24
And the search should find 1 result
Then the search should find 0 results of 24
And the search should find 12 results

Pattern

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

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