Then the email with the subject "Reset your password" to "user" should contain "If you didn't request a password reset, you can ignore this email."

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 "Reset your password" to "user" should contain "If you didn't request a password reset, you can ignore this email."
Then the email with the subject "Confirm your email" to "unconfirmeduser" should contain "Please confirm your account by clicking here"
Then the email with the subject "Reset your password" to "user@example.com" should contain "clicking here"
And the email with the subject "Confirm your email" to "user" should contain "confirm your account"
Then the email with the subject "Reset your password" to "user" should contain "Please reset your password"

Pattern

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

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