The page asks for the code again, with the server's refusal under the field ("Invalid authenticator code.").
Examples
Then the one-time code should be refused with "Invalid authenticator code."
Then the one-time code should be refused with "Invalid authenticator code"
And the one-time code should be refused with "Invalid authenticator code."
Then the one-time code should be refused with "authenticator code"
Then the one-time code should be refused with "Please specify authenticator code."
Pattern
Then(/^the one-time code should be refused with "([^"]*)"$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.