Then I should be logged in as "student"

Assert who is logged in, by a handle of the users registry: the user menu names the account by its full name (name in the registry, else its user name).

Examples

Then I should be logged in as "student"
Then we should be logged in as "teacher"
And I should be logged in as "administrator"
Then I should be logged in as "manager"
And we should be logged in as "student2"

Pattern

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

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