When I log in as "editor" with the login form

Log in through the login form as an account of the users registry, as a person does: a new session, never one taken over. For the scenarios that test the form itself; the step fails when the wiki refuses the login. "and ask to be kept logged in" ticks "Keep me logged in" first.

Examples

When I log in as "editor" with the login form
When we log in as "reader" with the login form
When I log in as "editor" with the login form and ask to be kept logged in
And I log in as "administrator" with the login form
When we log in as "reader" with the login form and ask to be kept logged in

Pattern

When(/^(I |we )*log in as "([^"]*)" with the login form( and ask to be kept logged in)?$/, …)

Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.