Fill in the login form with a login and a password as typed in the step, and submit it. It asserts nothing: follow it with a step that says what should happen (logged in, or the login refused). For the accounts of the registry use "I am a logged in user with the … user".
Examples
When I log in as "member" with the password "not-the-right-password"
When I log in as "nobody" with the password "whatever"
When we log in as "reader" with the password "wrong"
And I log in as "owner" with the password "wrong-password"
When I log in as "member" with the password ""
Pattern
When(/^(I |we )*log in as "([^"]*)" with the password "([^"]*)"$/, …)
Part of @webship-js/redmine-steps (github.com/webship/redmine-steps), a step pack for Webship-js 2.0.x.