Log in through the login form as an account of the users registry, as a person does: a new session, never one taken over, and the page the app chooses afterwards. For the scenarios that test the form itself; the step fails when the app refuses the login. A checkbox of the form ("Keep me logged in", "Remember me") can be ticked or unticked on the way.
Examples
When I log in as "administrator" with the login form
When we log in as "user" with the login form
When I log in as "user" with the login form and "Keep me logged in" unchecked
And I log in as "administrator" with the login form and "Keep me logged in" checked
When we log in as "administrator" with the login form
Pattern
When(/^(I |we )*log in as "([^"]*)" with the login form(?: and "([^"]*)" (checked|unchecked))?$/, …)
Part of @webship-js/symfony-steps (github.com/webship/symfony-steps), a step pack for Webship-js 2.0.x.