Assert somebody is (or nobody is) logged in to the admin panel, optionally which account of the users registry.
Examples
Then I should be logged in to the admin panel
Then I should not be logged in to the admin panel
Then I should be logged in to the admin panel as "admin"
Then we should be logged in to the admin panel as "sales"
And I should not be logged in to the admin panel as "sales"
Pattern
Then(/^(I |we )*should( not)* be logged in to the admin panel(?: as "([^"]*)")?$/, …)
Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.