When I ask for a password reset for "editor"

Ask for a password reset through the "Reset password" form (/user/password) for a username or an email address. The site answers with a status message and sends an email; the account is not changed. An unknown name is answered with an error message, which the scenario asserts. The step fails when the site refuses the request because of its flood limit (too many requests for one account or from one address), and says how to lift it on a test site.

Examples

When I ask for a password reset for "editor"
When I ask for a password reset for "member@example.com"
When we ask for a password reset for "member"
And I ask for a password reset for "nobody"
When ask for a password reset for "editor@example.com"

Pattern

When(/^(I |we )*ask for a password reset for "([^"]*)"$/, …)

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