Then the search results should list "Haddad, Lina"

Assert that the search of everything lists a result (its text, or a part of it), under a group when one is named ("Contacts"), or does not.

Examples

Then the search results should list "Haddad, Lina"
Then the search results should list "Haddad, Lina" under "Contacts"
And the search results should not list "Saleh, Omar"
Then the search results should list "Newsletter readers" under "Segments"
Then the search results should not list "Haddad, Lina"

Pattern

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

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