Then I should be logged in to the administrator panel

Assert the administrator panel shows a signed-in user (the "User Menu" of the header), optionally with the display name the menu announces ("Signed in as ...").

Examples

Then I should be logged in to the administrator panel
Then I should be logged in to the administrator panel as "Super User"
Then we should not be logged in to the administrator panel
And I should be logged in to the admin panel as "Test Manager"
Then should be logged in to the admin panel

Pattern

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

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