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

Send the admin login form with a user name 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 "editor" and the password "Not-the-password-2"
And I log in with the username "member" and the password "dD.123123ddd"
When I log in with the username "" and the password ""
When we log in with the username "inactive" and the password "changeme"

Pattern

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

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