Log in with a user's email address instead of the username, which Drupal CMS accepts through the Login Email or Username module. The user comes from worldParameters.users and needs an email key next to its password.
Examples
When I log in with the email address of "content editor"
And I log in with the email address of the "admin" user
When we log in with the email address of "content editor"
Given I log in with the email address of the "content editor" user
And we log in with the email address of "admin"
Pattern
When(/^(I |we )*log in with the email address of (?:the )?"([^"]*)"(?: user)?$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.