Then I should be logged in as "administrator"

Assert who is logged in, by a handle of the users registry: the step opens a page only a signed-in account may open (worldParameters.protectedPath), whose header or navigation names the account ("Signed in as user" on the test site; 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/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.