Then I should be logged in

Assert that someone is, or nobody is, logged in to the admin (its account page opens, or sends the browser to the login page). The page on screen stays as it is.

Examples

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

Pattern

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

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