Then an email with the subject "password reset" should be sent to "sales"

A mail with a subject (a part of it is enough) came to an account of the users registry (its email) or to an address, since the scenario began.

Examples

Then an email with the subject "password reset" should be sent to "sales"
Then an email with the subject "Webship test: our webinar" should be sent to "lina.haddad@example.com"
And an email with the subject "password reset" should be sent to "marketer"
Then an email with the subject "Webship test" should be sent to "omar.saleh@example.com"
Then an email with the subject "password reset" should be sent to "sales@example.com"

Pattern

Then(/^an email with the subject "([^"]*)" should be sent to "([^"]*)"$/, …)

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