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 navigation names the account in its link to the Manage pages ("Hello user@example.com!" on the default pages; the email in a Blazor Web App).
Examples
Then I should be logged in as "administrator"
Then we should be logged in as "user"
And I should be logged in as "twofactoruser"
Then I should be logged in as "user"
And we should be logged in as "administrator"
Pattern
Then(/^(I |we )*should be logged in as "([^"]*)"$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.