When I submit the login form as "twofactoruser"

Submit the login form as an account of the users registry (its email and its password) and stop on the page the app answers with: the page that asks for the code of an authenticator app, the Lockout page, the login page with its refusal, or the app. Assert the outcome with the next step.

Examples

When I submit the login form as "twofactoruser"
When we submit the login form as "lockeduser"
When I submit the login form as "unconfirmeduser"
And I submit the login form as "user"
When I submit the login form as "twofactoruser" with "Remember me?" checked

Pattern

When(/^(I |we )*submit the login form as "([^"]*)"(?: with "([^"]*)" (checked|unchecked))?$/, …)

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