| Línea 4... |
Línea 4... |
| 4 |
As an admin
|
4 |
As an admin
|
| 5 |
I want to setup and enable the SMS factor for the current user
|
5 |
I want to setup and enable the SMS factor for the current user
|
| Línea 6... |
Línea 6... |
| 6 |
|
6 |
|
| 7 |
Background:
|
7 |
Background:
|
| - |
|
8 |
Given I log in as "admin"
|
| - |
|
9 |
And I navigate to "Plugins > SMS > Manage SMS gateways" in site administration
|
| - |
|
10 |
And I follow "Create new SMS gateway"
|
| - |
|
11 |
And I set the following fields to these values:
|
| - |
|
12 |
| SMS gateway provider | AWS |
|
| - |
|
13 |
| Gateway name | Dummy gateway |
|
| - |
|
14 |
| Access key | key123 |
|
| - |
|
15 |
| Secret access key | secret456 |
|
| 8 |
Given I log in as "admin"
|
16 |
And I press "Save changes"
|
| 9 |
And the following config values are set as admin:
|
17 |
And the following config values are set as admin:
|
| - |
|
18 |
| enabled | 1 | tool_mfa |
|
| 10 |
| enabled | 1 | tool_mfa |
|
19 |
| lockout | 3 | tool_mfa |
|
| 11 |
And the following config values are set as admin:
|
20 |
And the following config values are set as admin:
|
| - |
|
21 |
| enabled | 1 | factor_sms |
|
| - |
|
22 |
| weight | 100 | factor_sms |
|
| - |
|
23 |
| duration | 1800 | factor_sms |
|
| - |
|
24 |
And I navigate to "Plugins > Admin tools > Multi-factor authentication" in site administration
|
| - |
|
25 |
And I follow "Edit settings for the SMS factor"
|
| - |
|
26 |
And I set the field "SMS gateway" to "Dummy gateway (AWS)"
|
| - |
|
27 |
And I press "Save changes"
|
| 12 |
| enabled | 1 | factor_sms |
|
28 |
And I should see "Changes saved"
|
| 13 |
When I follow "Preferences" in the user menu
|
29 |
When I follow "Preferences" in the user menu
|
| 14 |
And I click on "Multi-factor authentication preferences" "link"
|
30 |
And I click on "Multi-factor authentication preferences" "link"
|
| Línea 15... |
Línea 31... |
| 15 |
And I click on "Set up" "button"
|
31 |
And I click on "Set up" "button"
|