A mail with a subject came to an account of the users registry (its email) or to an address, since the scenario began.
Examples
Then an email with the subject "Reset password" should be sent to "user"
Then an email with the subject "Verify email" should be sent to "user"
Then an email with the subject "Reset password" should be sent to "user@example.com"
And an email with the subject "Reset password" should be sent to "editor"
Then an email with the subject "Verify" should be sent to "user"
Pattern
Then(/^an email with the subject "([^"]*)" should be sent to "([^"]*)"$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.