Submit the login form with an email (or a user name) and a password. The step does not expect the login to succeed: assert the outcome with the next step (the refusal of the login page, the page it goes to).
Examples
When I log in with the email "user@example.com" and the password "Wrong-password-1"
When we log in with the email "nobody@example.com" and the password "Whatever-123"
And I log in with the username "administrator@example.com" and the password "not-the-password"
When I log in with the email address "user@example.com" and the password ""
When we log in with the email "unconfirmeduser@example.com" and the password "Wrong-password-1"
Pattern
When(/^(I |we )*log in with the (?:email address|email|username|user name) "([^"]*)" and the password "([^"]*)"$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.