Log in to the site with a username and a password, through the login form of the page (the login page or a login module). When no login form is on the page, the login page is opened first.
Examples
When I log in to the site as "member" with password "Member123456789!"
When I log in to the site as "editor" with password "Editor123456789!"
When we log in to the site as "member" with password "wrong-password"
And I log in to the site as "manager" with password "Manager123456789!"
When log in to the site as "member" with password "Member123456789!"
Pattern
When(/^(I |we )*log in to the site as "([^"]*)?" with password "([^"]*)?"$/, …)
Part of @webship-js/joomla-steps (github.com/webship/joomla-steps), a step pack for Webship-js 2.0.x.