When I ask for a login link for "user"

Ask for a login link by mail, as a person does: the page of the login form that sends one (worldParameters.loginLinkPath, /login/magic-link), the address of an account (a handle of the users registry stands for its address, anything else is used as it is), the "Send" button. Assert the outcome with the next step: the page's message, the mail.

Examples

When I ask for a login link for "user"
When we ask for a login link for "admin"
When I ask for a login link for "nobody@example.com"
And I ask for a login link for "developer"
When we ask for a login link for "user@example.com"

Pattern

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

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