Log in to the webmail as an account of the users registry (worldParameters.users in cucumber.js), by its handle: the login form of the front page, then the inbox. A session that is open is logged out first.
Then the folder "Inbox" should show 2 unread
Examples
Given I am logged in to the webmail as "alice"
Given we are logged in to the webmail as "bob"
When I log in to the webmail as "alice"
And we log in to the webmail as "bob"
Given I am logged in to the webmail as "alice"
Pattern
Given(/^(?:(?:I am|we are) logged in|(?:I|we) log in) to the webmail as "([^"]*)"$/, …)
Part of @webship-js/roundcube-steps (github.com/webship/roundcube-steps), a step pack for Webship-js 2.0.x.