The server asks the account to set up a one-time code before it lets it in (the required action "Configure OTP"): its page "Mobile Authenticator Setup".
When I set up a one-time code named "Test laptop"
And I should see "Mobile Authenticator Setup"
Examples
Then I should be asked to set up a one-time code
Then we should be asked to set up a one-time code
And I should be asked to set up a one-time code
Then I should be asked to set up a one-time code
Then I should be asked to set up a one-time code
Pattern
Then(/^(?:I|we) should be asked to set up a one-time code$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.