Then the community mail "New friendship request from Newcomer Test" to "member" should contain "Newcomer Test wants to add you as a friend"

Assert the newest mail to an account whose subject holds some words carries a text in its body.

Examples

Then the community mail "New friendship request from Newcomer Test" to "member" should contain "Newcomer Test wants to add you as a friend"
And the community mail "New message from Organizer Test" to "member" should contain "Webship test message"
Then the community mail "New friendship request" to "member" should contain "To accept this request"
And the community mail "Membership request for group" to "organizer" should contain "Newcomer Test wants to join the group"
Then the community mail "New message" to "member" should contain "Hello from a test."

Pattern

Then(/^the community mail "([^"]*)" to "([^"]*)" should contain "([^"]*)"$/, …)

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