Assert who is logged in, by a handle of the users registry: the user menu of the header names the account (its name in the registry, else its username).
Examples
Then I should be logged in as "administrator"
Then we should be logged in as "user"
And I should be logged in as "user"
Then I should be logged in as "administrator"
And we should be logged in as "administrator"
Pattern
Then(/^(I |we )*should be logged in as "([^"]*)"$/, …)
Part of @webship-js/symfony-steps (github.com/webship/symfony-steps), a step pack for Webship-js 2.0.x.