Submit the control panel login form with a username (or an email address) and a password. The step does not expect the login to succeed: assert the outcome with the next step.
Examples
When I log in to the control panel with the username "admin" and the password "wrong-password"
When we log in to the control panel with the username "editor" and the password "Editor123456789!"
When I log in to the control panel with the username "nobody" and the password "nothing-at-all"
When I log in to the control panel with the username "admin@example.com" and the password "wrong-password"
When we log in to the control panel with the username "editor@example.com" and the password "Editor123456789!"
Pattern
When(/^(I |we )*log in to the control panel with the username "([^"]*)" and the password "([^"]*)"$/, …)
Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.