Then the authenticator code should be refused with "Invalid authenticator code."

Assert that a code was refused: the page that asks for it is back, with its reason ("Invalid authenticator code.").

Examples

Then the authenticator code should be refused with "Invalid authenticator code."
Then the one-time code should be refused with "Invalid authenticator code."
And the authenticator code should be refused with "Invalid authenticator code."
Then the authenticator code should be refused with "Invalid authenticator code"
But the one-time code should be refused with "Invalid authenticator code."

Pattern

Then(/^the (?:one-time|authenticator) code should be refused with "([^"]*)"$/, …)

Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.