Skip to content

Instantly share code, notes, and snippets.

@ermakovich
Last active June 28, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ermakovich/5762a7dba764db0e2a9542336c6fd1b6 to your computer and use it in GitHub Desktop.
Save ermakovich/5762a7dba764db0e2a9542336c6fd1b6 to your computer and use it in GitHub Desktop.
2FA feature example
Feature: 2-factor authentication
Background:
Given I'm logged in
Scenario: Enable 2FA
Given 2FA is disabled
When I navigate to "settings/security"
And I click to enable 2FA
And I enter code for enabling 2FA
Given code for enabling 2FA is correct
And I submit form
Then I should see "info" alert with message "2-factor authentication enabled"
And I should see recovery codes to download or print
When I finish enabling 2FA
Then 2FA status should be indicated as "Enabled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment