Then I should see search results for "hello world"

Assert the page is the search results template with at least one match for the term, named inline or taken from the search before it. The body class is search-results: block themes also list "more posts" under an empty result, so counting entries could not tell a match from none.

Examples

Then I should see search results for "hello world"
And we should see search results for that content
Then should see search results for the content
And should see search results for "contact"
Then we should see search results for "example"

Pattern

Then(/^(I |we )*should see search results for (?:"([^"]*)?"|(?:that|the) content)$/, …)

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