Log in through the form with a username 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" with the password "not-the-right-password"
When log in as "nobody" with the password "dD.123123ddd"
And I log in as "member" with the password "not-the-right-password"
And log in as "nobody" with the password "dD.123123ddd"
When we log in as "member" with the password "not-the-right-password"
Pattern
When(/^(I |we )*log in as "([^"]*)" with the password "([^"]*)"$/, …)
Part of @webship-js/kanboard-steps (github.com/webship/kanboard-steps), a step pack for Webship-js 2.0.x.