Assert the session of the browser belongs (or does not belong) to an account of the users registry. The username is read from the account page with the cookies of the browser; the current page stays where it is.
Examples
Then I should be logged in as "editor"
Then I should be logged in as "admin"
And I should not be logged in as "admin"
Then we should be logged in as "member"
And should not be logged in as "editor"
Pattern
Then(/^(I |we )*should( not)* be logged in as "([^"]*)"$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.