1441 |
ariadna |
1 |
@tool @tool_mfa
|
|
|
2 |
Feature: Manage factor plugins
|
|
|
3 |
In order to manage different factors in MFA
|
|
|
4 |
As an administrator
|
|
|
5 |
I need to enable/disable or change the order of the factor plugins from MFA management page
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Administrators can manage factor plugins from MFA managements page
|
|
|
9 |
Given I am logged in as "admin"
|
|
|
10 |
And I navigate to "Plugins > Admin tools > Multi-factor authentication > Manage multi-factor authentication" in site administration
|
|
|
11 |
# Enable and disable Factor.
|
|
|
12 |
When I toggle the "Enable Trust this device" admin switch "on"
|
|
|
13 |
And I should see "Trust this device enabled."
|
|
|
14 |
And I should see "Disable Trust this device" in the "Trust this device" "table_row"
|
|
|
15 |
And I reload the page
|
|
|
16 |
And I should see "Disable Trust this device"
|
|
|
17 |
And I toggle the "Disable Trust this device" admin switch "off"
|
|
|
18 |
And I should see "Trust this device disabled."
|
|
|
19 |
And I should see "Enable Trust this device" in the "Trust this device" "table_row"
|
|
|
20 |
# Ordering Factors.
|
|
|
21 |
Then I toggle the "Enable Trust this device" admin switch "on"
|
|
|
22 |
And I toggle the "Enable Grace period" admin switch "on"
|
|
|
23 |
And I click on "Move up" "link" in the "Grace period" "table_row"
|
|
|
24 |
And "Grace period" "table_row" should appear before "Trust this device" "table_row"
|
|
|
25 |
And I click on "Move down" "link" in the "Grace period" "table_row"
|
|
|
26 |
And "Grace period" "table_row" should appear after "Trust this device" "table_row"
|
|
|
27 |
|
|
|
28 |
Scenario: Email factor is enabled by default
|
|
|
29 |
Given I am logged in as "admin"
|
|
|
30 |
When I navigate to "Plugins > Admin tools > Multi-factor authentication > Manage multi-factor authentication" in site administration
|
|
|
31 |
Then I should see "Disable Email" in the "Email" "table_row"
|