Then I should be logged in as "editor"

Assert who is signed in to the admin: a handle of the users registry (its email address, else its user name), an email address or a user name. The step asks the admin's account page with the cookies of the browser; the page on screen stays as it is.

Examples

Then I should be logged in as "editor"
Then we should be logged in as "administrator"
And I should be logged in as "moderator"
Then I should be logged in as "editor@example.com"
And we should be logged in as "moderator"

Pattern

Then(/^(I |we )*should be logged in as "([^"]*)"$/, …)

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