Then I should be logged in as "admin"

Assert the session belongs, or does not belong, to the given user. The text is compared with the login and with the name of the user, as the server reports them, so both "admin" and "Mitchell Admin" identify the administrator of the demo data.

Examples

Then I should be logged in as "admin"
And I should be logged in as "Mitchell Admin"
Then we should be logged in as "salesperson"
And I should not be logged in as "admin"
Then I should be logged in as "portal"

Pattern

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

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