When I enter the code e-mailed to "member@example.com" in the membership form

Sign in as a member with the code of the sign in e-mail instead of its link: the step reads the six digits from the newest e-mail to the address, types them in the "Code" field of the membership form and submits it. The form closes once the code is accepted.

Examples

When I enter the code e-mailed to "member@example.com" in the membership form
When I enter the code e-mailed to "vera@example.com" in the membership form
When we enter the code e-mailed to "noel@example.com" in the membership form
And I enter the code e-mailed to "member@example.com" in the membership form
When I enter the code e-mailed to "suite.member@example.com" in the membership form

Pattern

When(/^(?:I |we )?enter the code e-mailed to "([^"]*)" in the membership form$/, …)

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