Then the search result "Reading test page" should mention "readers"

Assert that a result of the results page shows a word of the search highlighted in its snippet.

Examples

Then the search result "Reading test page" should mention "readers"
And the search result "Second test page" should mention "version"
Then the search result "History test page" should mention "history"
Then the search result "Reading test page" should mention "wiki"
And the search result "Reading test page" should mention "readers"

Pattern

Then(/^the search result "([^"]*)" should mention "([^"]*)"$/, …)

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