public function loginCreatedUser($roles, TableNode $fields = null)
    {
        $this->createDrupalUser($roles, $fields);
        $this->loginUser();
    }
public function loginCreatedUser($roles, TableNode $fields = null)
    {
        $this->createDrupalUser($roles, $fields);
        $this->loginUser();
    }
@example
Then I am logged in as a user with "CRM Client" role and filled fields
| Full name                | Sergii Bondarenko |
| Position                 | Developer         |
| field_crm_user_company   | FFW               |

@param string $roles
User roles, separated by comma.
@param TableNode $fields
| Field machine name or label | Value |

@throws \EntityMetadataWrapperException
When user object cannot be saved.
@throws \Exception
When required fields are not filled.

@Given /^(?:|I am )logged in as a user with "([^"]*)" role(?:|s)(?:| and filled fields:)$/