Given I am logged in to the administration as "admin"

Log in to the administration as an account of the users registry, by its handle, through its login form. Its screens then carry the session's token.

Examples

Given I am logged in to the administration as "admin"
Given we are logged in to the administration as "editor"
And I am logged in to the administration as "admin"
Given I log in to the administration as "editor"
When I log in to the administration as "admin"

Pattern

Given(/^(?:(?:I am|we are) logged in|(?:I|we) log in) to the administration as "([^"]*)"$/, …)

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