Given I am logged in to the back office as "admin"

Log in to the back office as an employee of the registry (worldParameters.employees in cucumber.js), by its handle.

Examples

Given I am logged in to the back office as "admin"
Given we are logged in to the back office as "admin"
Given I am logged in to the back office as "salesman"
Given logged in to the back office as "admin"
And I am logged in to the back office as "salesman"

Pattern

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

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