MDL-80725 tool_mfa: Apply en_fix to Behat tests

Also use the appropriate Behat tags `@tool @tool_mfa @factor_sms`
instead of `@tool_admin_mfa`.
This commit is contained in:
Jun Pataleta 2024-02-06 15:50:55 +08:00
parent 83532409cc
commit c424ba34e2
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
@tool_admin_mfa
@tool @tool_mfa @factor_sms
Feature: Login user with sms authentication factor
In order to login using SMS factor authentication
As an user
@ -14,7 +14,7 @@ Feature: Login user with sms authentication factor
# Set up user SMS factor in user preferences.
When I follow "Preferences" in the user menu
And I click on "Multi-factor authentication preferences" "link"
And I click on "Setup SMS" "button"
And I click on "Set up SMS" "button"
And I set the field "Mobile number" to "+34649709233"
And I press "Send code"
And I set the field "Enter code" with valid code

View File

@ -1,6 +1,6 @@
@tool_admin_mfa
Feature: Setup SMS factor in user preferences
In order check the setup SMS factor verification
@tool @tool_mfa @factor_sms
Feature: Set up SMS factor in user preferences
In order check the SMS factor verification
As an admin
I want to setup and enable the SMS factor for the current user
@ -12,7 +12,7 @@ Feature: Setup SMS factor in user preferences
| enabled | 1 | factor_sms |
When I follow "Preferences" in the user menu
And I click on "Multi-factor authentication preferences" "link"
And I click on "Setup SMS" "button"
And I click on "Set up SMS" "button"
Scenario: Phone number setup form validation
Given I set the field "Mobile number" to "++5555sss"