Then the email with the subject "order has been received" to "guest@example.com" should contain "Beanie"

Assert an e-mail whose subject holds a text, to an address, holds a text in its body (its text version, or its HTML without the markup).

Examples

Then the email with the subject "order has been received" to "guest@example.com" should contain "Beanie"
And the email with the subject "New order" to "shop_manager" should contain "Cash on delivery"
Then the email with the subject "is on its way" to "customer" should contain "We have finished processing your order"
And the email with the subject "has been received" to "customer" should contain "Casey"
Then the email with the subject "New order" to "shop_manager" should contain "Gina Guest"

Pattern

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

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