Last active
June 28, 2018 15:09
-
-
Save ermakovich/5762a7dba764db0e2a9542336c6fd1b6 to your computer and use it in GitHub Desktop.
2FA feature example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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