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 "Account password reset" to "member" should contain "Hello member"
Then the email with the subject "Account password reset" to "member" should contain "To reset your password, please click the link provided below"
And the email with the subject "Account password reset" to "moderator" should contain "Hello moderator"
Then the email with the subject "password reset" to "member" should contain "Webship test board"
Then the email with the subject "Account password reset" to "member@example.com" should contain "reset_password"
Pattern
Then(/^the email with the subject "([^"]*)" to "([^"]*)" should contain "([^"]*)"$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.