When I log in with the username "nobody" and the password "Wrong-password-1"

Send the login form with a user name (or an email address) and a password. The step does not expect the login to succeed: assert the outcome with the next step.

Examples

When I log in with the username "nobody" and the password "Wrong-password-1"
When we log in with the username "sales" and the password "Not-the-password-2"
And I log in with the username "marketer@example.com" and the password "Wrong-password-3"
When I log in with the username "marketer" and the password "dD.123123ddd"
When we log in with the username "administrator" and the password "wrong"

Pattern

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

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