Fill the login form in with the username and the password of an account of the users registry and send it, nothing more: the browser stays on the page the server shows next (the one-time code, a required action, the consent), for the steps of that page.
Then I should be asked for a one-time code
Examples
When I submit the login form as "otpuser"
When I submit the login form as "user"
When we submit the login form as "otpuser"
When I submit the login form as "otpuser"
When I submit the login form as "editor"
Pattern
When(/^(?:I|we) submit the login form as "([^"]*)"$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.