Then the email with the subject "has been rejected" to "editor" should contain "Please add a photo."

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 "has been rejected" to "editor" should contain "Please add a photo."
Then the email with the subject "Password reset" to "editor" should contain "Your username (in case you've forgotten): editor"
And the email with the subject "has been approved" to "editor" should contain "Looks good."
Then the email with the subject "has been submitted for approval" to "moderator" should contain "Webship test page"
Then the email with the subject "Contact message" to "us@example.com" should contain "Webship test message"

Pattern

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

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