When I log in to the webmail with the address "alice@example.com" and the password "Not-the-password-1"

Log in to the webmail with an address and a password as they are written: for a login that must be refused. A scenario that must log in uses the handle of an account instead, so that no password is written in a feature.

            Then the webmail should refuse the login with "Login failed."

Examples

When I log in to the webmail with the address "alice@example.com" and the password "Not-the-password-1"
When we log in to the webmail with the address "nobody@example.com" and the password "Not-the-password-1"
When I log in to the webmail with the address "alice@example.com" and the password ""
When I log in to the webmail with the address "bob@example.com" and the password "wrong"
When I log in to the webmail with the address "alice@example.com" and the password "Not-the-password-1"

Pattern

When(/^(?:I|we) log in to the webmail with the address "([^"]*)" and the password "([^"]*)"$/, …)

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