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

Log in through the admin's login form with the email address and password of an account of the users registry, and keep its session for the next scenarios.

Examples

When I log in as "editor" with the login form
When I log in as "administrator" with the login form
And I log in as "editor" with the login form
When I log in as "administrator" with the login form
Given I log in as "editor" with the login form

Pattern

When(/^I log in as "([^"]*)" with the login form$/, …)

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