Then I should be logged in to the admin

Whether somebody is signed in to the admin: asked from the Admin API with the session of the browser, and, with a handle, compared with the account of the users registry.

Examples

Then I should be logged in to the admin
Then I should be logged in to the admin as "owner"
Then we should be logged in to the admin as "editor"
Then I should not be logged in to the admin
And we should not be logged in to the admin

Pattern

Then(/^(?:I |we )?should( not)? be logged in to the admin(?: as "([^"]*)")?$/, …)

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