Log in through the server's login form as an account of the users registry, as a person does: the form (a sign-in is started from the app when the browser is not on it), the username and the password, "Remember me" when asked, "Sign In", and the one-time code when the server asks for one and the account has a secret. The browser ends back in the app, or on the page the server shows next (a required action, the consent screen); a refused login fails the step.
Examples
When I log in as "user" with the login form
When I log in as "editor" with the login form
When I log in as "otpuser" with the login form
When I log in as "user" with the login form and "Remember me" checked
When we log in as "administrator" with the login form
Pattern
When(/^(?:I|we) log in as "([^"]*)" with the login form( and "Remember me" checked)?$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.