Assert a session is (or is not) open on the site, optionally for a given account (a username, or a handle of the users registry). The check asks the site with the browser's cookies, so the page the scenario is on stays where it is.
Examples
Then I should be logged in to the site
Then I should not be logged in to the site
Then we should be logged in to the site as "member"
And I should be logged in to the site as "editor"
Then should not be logged in to the site
Pattern
Then(/^(I |we )*should( not)* be logged in to the site(?: as "([^"]*)")?$/, …)
Part of @webship-js/joomla-steps (github.com/webship/joomla-steps), a step pack for Webship-js 2.0.x.