Then the email with the subject "password reset" to "sales" should contain "You requested a password reset"

The mail with a subject to an account or an address says a text (in its plain text or its HTML).

Examples

Then the email with the subject "password reset" to "sales" should contain "You requested a password reset"
Then the email with the subject "Webship test: our webinar" to "lina.haddad@example.com" should contain "Thank you for joining."
And the email with the subject "password reset" to "marketer" should contain "Hi Marketer"
Then the email with the subject "password reset" to "sales" should contain "passwordresetconfirm"
Then the email with the subject "Webship test" to "omar.saleh@example.com" should contain "Hello."

Pattern

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

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