Then the search results page should list "Behind a firewall"

Assert the page of all the search results (/search?q=…) lists (or does not list) a result whose title contains the text. The page loads the index itself; the step waits for its results.

Examples

Then the search results page should list "Behind a firewall"
And the search results page should list "Version 2.0"
But the search results page should not list "Installation"
Then search results page should list "Check the installation"
And the search results page should not list "FAQ"

Pattern

Then(/^(?:the )?search results page should( not)* list "([^"]*)?"$/, …)

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