Skip to content

Instantly share code, notes, and snippets.

@ermakovich
Last active Jun 28, 2018
Embed
What would you like to do?
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