The server asks for the one-time code after the password: its page with the "One-time code" field.
When I enter the one-time code of "otpuser"
And I should see "otpuser"
Examples
Then I should be asked for a one-time code
Then we should be asked for a one-time code
And I should be asked for a one-time code
Then I should be asked for a one-time code
Then I should be asked for a one-time code
Pattern
Then(/^(?:I|we) should be asked for a one-time code$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.