Then I should see that word in the search results

Assert the Smart Search result list holds (or does not hold) an entry that contains the word the step "search the site for a word from the first article" searched for. The words are matched in the entries of the list, not in the sentence that repeats the search term, so a search without results cannot pass.

Examples

Then I should see that word in the search results
And we should see that word in the search results
Then should see that word in the search results
Then I should not see that word in the search results
And we should not see that word in the search results

Pattern

Then(/^(I |we )*should( not)* see that word in the search results$/, …)

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