Then I should be logged in

Assert somebody is (or nobody is) logged in as a staff user: the admin index answers the session instead of sending it to the login form. The page in the browser does not change.

Examples

Then I should be logged in
Then I should not be logged in
And we should be logged in
Then should not be signed in
But we should not be logged in

Pattern

Then(/^(I |we )*should( not)* be (?:logged in|signed in)$/, …)

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