Then I should be logged in to the control panel as "admin"

Assert who is logged in to the control panel, by handle of the users registry: the account menu names the username of the signed-in user.

Examples

Then I should be logged in to the control panel as "admin"
Then I should be logged in to the control panel as "editor"
Then we should be logged in to the control panel as "author"
And I should be logged in to the control panel as "editor"
Then we should be logged in to the control panel as "admin"

Pattern

Then(/^(I |we )*should be logged 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.