Given I am logged in to the control panel as "admin"

Log in to the control panel as a user of the users registry (worldParameters.users in cucumber.js), by handle.

Examples

Given I am logged in to the control panel as "admin"
Given we are logged in to the control panel as "editor"
When I log in to the control panel as "author"
When we log in to the control panel as "editor"
Given I am logged in to the control panel as "author"

Pattern

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

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