Then the email with the subject "Your Login Link" to "user" should contain "Username: user"

Assert that the newest e-mail to an address with a subject holds a text (in its text or its HTML version, white space collapsed).

Examples

Then the email with the subject "Your Login Link" to "user" should contain "Username: user"
Then the email with the subject "Your Login Link" to "admin" should contain "Some information about the person:"
And the email with the subject "Your Login Link" to "user" should contain "IP Address:"
Then the email with the subject "Your Login Link" to "user@example.com" should contain "Login"
And the email with the subject "Your Login Link" to "developer" should contain "Username: developer"

Pattern

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

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