Then two-factor authentication should be on

Assert whether two-factor sign-in is on for the signed-in account, as its two-factor page shows it: on, the page offers "Disable 2FA"; off, it does not.

Examples

Then two-factor authentication should be on
Then two-factor authentication should be off
And two-factor authentication should be on
And two-factor authentication should be off
But two-factor authentication should be off

Pattern

Then(/^two-factor authentication should be (on|off)$/, …)

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