Línea 30... |
Línea 30... |
30 |
And I click on "Set up authenticator app" "button"
|
30 |
And I click on "Set up authenticator app" "button"
|
31 |
And I should see "Set up authenticator app"
|
31 |
And I should see "Set up authenticator app"
|
32 |
And I click on "Cancel" "button"
|
32 |
And I click on "Cancel" "button"
|
33 |
And I click on "Manage security key" "button"
|
33 |
And I click on "Manage security key" "button"
|
34 |
And I should see "Manage security key"
|
34 |
And I should see "Manage security key"
|
- |
|
35 |
And I should see "Add security key"
|
Línea 35... |
Línea 36... |
35 |
|
36 |
|
36 |
@javascript
|
37 |
@javascript
|
37 |
Scenario: I can revoke a factor only when there is more than one active factor
|
38 |
Scenario: I can revoke a factor only when there is more than one active factor
|
38 |
Given the following config values are set as admin:
|
39 |
Given the following config values are set as admin:
|
- |
|
40 |
| enabled | 1 | factor_webauthn |
|
- |
|
41 |
And I navigate to "Plugins > SMS > Manage SMS gateways" in site administration
|
- |
|
42 |
And I follow "Create new SMS gateway"
|
- |
|
43 |
And I set the following fields to these values:
|
- |
|
44 |
| SMS gateway provider | AWS |
|
- |
|
45 |
| Gateway name | Dummy gateway |
|
- |
|
46 |
| Access key | key123 |
|
- |
|
47 |
| Secret access key | secret456 |
|
39 |
| enabled | 1 | factor_webauthn |
|
48 |
And I press "Save changes"
|
40 |
And the following config values are set as admin:
|
49 |
And the following config values are set as admin:
|
- |
|
50 |
| enabled | 1 | factor_sms |
|
- |
|
51 |
| smsgateway | Dummy gateway (AWS) | factor_sms |
|
- |
|
52 |
And the following config values are set as admin:
|
41 |
| enabled | 1 | factor_sms |
|
53 |
| enabled | 0 | factor_email |
|
42 |
And the following "tool_mfa > User factors" exist:
|
54 |
And the following "tool_mfa > User factors" exist:
|
43 |
| username | factor | label |
|
55 |
| username | factor | label |
|
44 |
| admin | sms | +409111222 |
|
56 |
| admin | sms | +409111222 |
|
45 |
| admin | webauthn | MacBook |
|
57 |
| admin | webauthn | MacBook |
|
46 |
And I follow "Preferences" in the user menu
|
58 |
And I follow "Preferences" in the user menu
|
47 |
And I click on "Multi-factor authentication preferences" "link"
|
59 |
And I click on "Multi-factor authentication preferences" "link"
|
48 |
And I click on "Manage SMS" "button"
|
60 |
And I click on "Manage SMS" "button"
|
49 |
And I click on "Remove" "button" in the "+409111222" "table_row"
|
61 |
And I click on "Remove" "button" in the "+409111222" "table_row"
|
50 |
When I click on "Yes, remove" "button" in the "Remove '+409111222' SMS?" "dialogue"
|
62 |
When I click on "Yes, remove" "button" in the "Remove '+409111222' SMS?" "dialogue"
|
51 |
Then I should see "'SMS mobile phone - +409111222' successfully removed"
|
63 |
Then I should see "'SMS - +409111222' successfully removed"
|
52 |
# Now there is only one active factor left.
|
64 |
# Now there is only one active factor left.
|
53 |
And I click on "Manage security key" "button"
|
65 |
And I click on "Manage security key" "button"
|
54 |
And I should see "Replace" in the "MacBook" "table_row"
|
66 |
And I should see "Replace" in the "MacBook" "table_row"
|
Línea 65... |
Línea 77... |
65 |
And I click on "Multi-factor authentication preferences" "link"
|
77 |
And I click on "Multi-factor authentication preferences" "link"
|
66 |
And I click on "Manage security key" "button"
|
78 |
And I click on "Manage security key" "button"
|
67 |
And I click on "Replace" "button" in the "MacBook" "table_row"
|
79 |
And I click on "Replace" "button" in the "MacBook" "table_row"
|
68 |
When I click on "Yes, replace" "button" in the "Replace 'MacBook' security key?" "dialogue"
|
80 |
When I click on "Yes, replace" "button" in the "Replace 'MacBook' security key?" "dialogue"
|
69 |
Then I should see "Replace security key"
|
81 |
Then I should see "Replace security key"
|
- |
|
82 |
|
- |
|
83 |
Scenario: I can add a new factor instance on the manage factor page
|
- |
|
84 |
Given the following config values are set as admin:
|
- |
|
85 |
| enabled | 1 | factor_webauthn |
|
- |
|
86 |
And the following "tool_mfa > User factors" exist:
|
- |
|
87 |
| username | factor | label |
|
- |
|
88 |
| admin | webauthn | MacBook |
|
- |
|
89 |
And I follow "Preferences" in the user menu
|
- |
|
90 |
And I click on "Multi-factor authentication preferences" "link"
|
- |
|
91 |
And I click on "Manage security key" "button"
|
- |
|
92 |
When I click on "Add security key" "button"
|
- |
|
93 |
Then I should see "Set up security key"
|