Assert that the newest e-mail to an address with a subject holds a text.
Examples
Then the email with the subject "Reset your password" to "member" should contain "This password reset link will expire in 60 minutes."
Then the email with the subject "Verify your email address" to "unverified" should contain "Please click the button below to verify your email address."
And the email with the subject "Reset your password" to "member" should contain "If you did not request a password reset, no further action is required."
Then the email with the subject "Reset your password" to "member@example.com" should contain "Reset Password"
And the email with the subject "Verify your email address" to "unverified" should contain "Verify Email Address"
Pattern
Then(/^the email with the subject "([^"]*)" to "([^"]*)" should contain "([^"]*)"$/, …)
Part of @webship-js/filament-steps (github.com/webship/filament-steps), a step pack for Webship-js 2.0.x.