mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-76739 lang: Use the fixed strings in the tests, too
This commit is contained in:
parent
975a127325
commit
50ba9dc72c
30 changed files with 120 additions and 120 deletions
|
@ -22,7 +22,7 @@ Feature: Notification shown when user edit profile or preferences
|
|||
When I click on "Edit profile" "link" in the "region-main" "region"
|
||||
And I should see "Unicorn"
|
||||
And I should see "1"
|
||||
Then I set the field "Surname" to "Lil"
|
||||
Then I set the field "Last name" to "Lil"
|
||||
And I click on "Update profile" "button"
|
||||
And I should see "Changes saved"
|
||||
And I press "Dismiss this notification"
|
||||
|
@ -43,7 +43,7 @@ Feature: Notification shown when user edit profile or preferences
|
|||
When I click on "Edit profile" "link" in the "region-main" "region"
|
||||
And I should see "Unicorn"
|
||||
And I should see "1"
|
||||
Then I set the field "Surname" to "Lil"
|
||||
Then I set the field "Last name" to "Lil"
|
||||
And I click on "Cancel" "button"
|
||||
And I should not see "Changes saved"
|
||||
|
||||
|
@ -53,6 +53,6 @@ Feature: Notification shown when user edit profile or preferences
|
|||
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
||||
When I click on "Edit" "link" in the "Unicorn 1" "table_row"
|
||||
And I expand all fieldsets
|
||||
Then I set the field "Surname" to "Lil"
|
||||
Then I set the field "Last name" to "Lil"
|
||||
And I click on "Update profile" "button"
|
||||
And I should see "Changes saved"
|
||||
|
|
|
@ -617,7 +617,7 @@ Feature: Course participants can be filtered
|
|||
And I should see "Student 4" in the "participants" "table"
|
||||
And I should not see "Patricia Pea" in the "participants" "table"
|
||||
|
||||
When I click on "Surname" "link"
|
||||
When I click on "Last name" "link"
|
||||
Then I should see "Student 1" in the "participants" "table"
|
||||
And I should see "Student 2" in the "participants" "table"
|
||||
And I should see "Student 3" in the "participants" "table"
|
||||
|
|
|
@ -20,7 +20,7 @@ Feature: The purpose of each input field collecting information about the user c
|
|||
And I expand all fieldsets
|
||||
Then the field "Username" should not have purpose "username"
|
||||
And the field "First name" should not have purpose "given-name"
|
||||
And the field "Surname" should not have purpose "family-name"
|
||||
And the field "Last name" should not have purpose "family-name"
|
||||
And the field "Email" should not have purpose "email"
|
||||
And the field "Select a country" should not have purpose "country"
|
||||
And I press "Cancel"
|
||||
|
@ -34,7 +34,7 @@ Feature: The purpose of each input field collecting information about the user c
|
|||
And I click on "Edit profile" "link" in the "region-main" "region"
|
||||
And I expand all fieldsets
|
||||
Then the field "First name" should have purpose "given-name"
|
||||
And the field "Surname" should have purpose "family-name"
|
||||
And the field "Last name" should have purpose "family-name"
|
||||
And the field "Email" should have purpose "email"
|
||||
And the field "Select a country" should have purpose "country"
|
||||
And I press "Cancel"
|
||||
|
|
|
@ -17,7 +17,7 @@ Feature: Both first name and surname are always available for every user
|
|||
| Email address | mrwhitespace@nas.ty |
|
||||
| Email (again) | mrwhitespace@nas.ty |
|
||||
And I set the field "First name" to " "
|
||||
And I set the field "Surname" to " "
|
||||
And I set the field "Last name" to " "
|
||||
And I press "Create my new account"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
|
@ -34,14 +34,14 @@ Feature: Both first name and surname are always available for every user
|
|||
And I click on "Edit profile" "link" in the "region-main" "region"
|
||||
# End UI test covering "I open my profile in edit mode"
|
||||
When I set the field "First name" to " "
|
||||
And I set the field "Surname" to " "
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Cancel" "button"
|
||||
And I follow "Profile" in the user menu
|
||||
And I click on "Edit profile" "link" in the "region-main" "region"
|
||||
Then I should see "Foo"
|
||||
And I should see "Bar"
|
||||
When I set the field "First name" to " "
|
||||
And I set the field "Surname" to " "
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Update profile" "button"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
|
@ -55,14 +55,14 @@ Feature: Both first name and surname are always available for every user
|
|||
And I follow "Foo Bar"
|
||||
And I click on "Edit profile" "link" in the "region-main" "region"
|
||||
When I set the field "First name" to " "
|
||||
And I set the field "Surname" to " "
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Cancel" "button"
|
||||
And I follow "Foo Bar"
|
||||
And I click on "Edit profile" "link" in the "region-main" "region"
|
||||
Then I should see "Foo"
|
||||
And I should see "Bar"
|
||||
When I set the field "First name" to " "
|
||||
And I set the field "Surname" to " "
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Update profile" "button"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
|
|
|
@ -20,7 +20,7 @@ Feature: Tables can be sorted by additional names
|
|||
Scenario: All user names are show and sortable in the administration user list.
|
||||
Given I navigate to "Users > Accounts > Browse list of users" in site administration
|
||||
Then the following should exist in the "users" table:
|
||||
| First name / Middle name / Alternate name / Surname | Email address |
|
||||
| First name / Middle name / Alternate name / Last name | Email address |
|
||||
| Admin User | moodle@example.com |
|
||||
| Annie Faith Anne Edison | student1@example.com |
|
||||
| George David Gman Bradley | student2@example.com |
|
||||
|
@ -39,9 +39,9 @@ Feature: Tables can be sorted by additional names
|
|||
And I follow "Alternate name"
|
||||
And "Annie Faith Anne Edison" "table_row" should appear after "George David Gman Bradley" "table_row"
|
||||
And "George David Gman Bradley" "table_row" should appear after "Travis Peter Mr T Sutcliff" "table_row"
|
||||
And I follow "Surname"
|
||||
And I follow "Last name"
|
||||
And "George David Gman Bradley" "table_row" should appear before "Annie Faith Anne Edison" "table_row"
|
||||
And "Annie Faith Anne Edison" "table_row" should appear before "Travis Peter Mr T Sutcliff" "table_row"
|
||||
And I follow "Surname"
|
||||
And I follow "Last name"
|
||||
And "George David Gman Bradley" "table_row" should appear after "Annie Faith Anne Edison" "table_row"
|
||||
And "Annie Faith Anne Edison" "table_row" should appear after "Travis Peter Mr T Sutcliff" "table_row"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue