When I log in as "administrator" with the login form

Log in through the login form as an account of the users registry, as a person with the account's authenticator app does: the login page on screen (so the page asked for before it opens after the login), or the login page opened for it; the code of the authenticator app typed when the app asks for one (worked out from otpSecret). A checkbox of the form can be ticked or unticked on the way ("Remember me?"). The step fails when the app refuses the login; to stop at the page that asks for the code, use "I submit the login form as ...".

Examples

When I log in as "administrator" with the login form
When we log in as "user" with the login form
When I log in as "user" with the login form and "Remember me?" checked
And I log in as "twofactoruser" with the login form and "Remember me?" unchecked
When we log in as "twofactoruser" with the login form

Pattern

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

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