Log in through the form with an e-mail address and a password that need not be right: the step asserts nothing, a refusal is read by the steps after it.
Examples
When I log in as "member@example.com" with the password "not-the-right-password"
When log in as "nobody@example.com" with the password "dD.123123ddd"
And I log in as "member@example.com" with the password "not-the-right-password"
And log in as "nobody@example.com" with the password "dD.123123ddd"
When we log in as "member@example.com" with the password "not-the-right-password"
Pattern
When(/^(I |we )*log in as "([^"]*)" with the password "([^"]*)"$/, …)
Part of @webship-js/leantime-steps (github.com/webship/leantime-steps), a step pack for Webship-js 2.0.x.