Then the search should find 1 page

Assert how many pages the search found, as the results page counts them, or that it found none ("There were no results matching the query.").

Examples

Then the search should find 1 page
Then the search should find 2 pages
Then the search should find no page
And the search should find 3 pages
And the search should find no page

Pattern

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

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