Assert the search found nothing for the term: the results template with the search-no-results body class.
Examples
Then I should see no search results for "qzxjvwk"
And we should see no search results for that content
Then should see no search results for the content
And should see no search results for "nothing like this"
Then we should see no search results for "zzz"
Pattern
Then(/^(I |we )*should see no search results for (?:"([^"]*)?"|(?:that|the) content)$/, …)
Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.