When I log in with the username "jane_admin" and the password "wrong-password"

Submit the login form with a username (or an email address) and a password. The step does not expect the login to succeed: assert the outcome with the next step (the error message of the login page, the page it sends to).

Examples

When I log in with the username "jane_admin" and the password "wrong-password"
When we log in with the username "nobody" and the password "Whatever-123!"
When I log in with the email address "nobody@example.com" and the password "not-a-password"
And I log in with the username "john_user" and the password "wrong-password"
When we log in with the username "no_such_account" and the password "kitten"

Pattern

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

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