MDL-49799 behat: replaced asd.com with example.com

asd.com is a valid domain, we should use reserved domain names for testing
This commit is contained in:
Rajesh Taneja
2015-04-20 11:21:20 +08:00
parent d302ba231f
commit 0fe86bbdbb
251 changed files with 960 additions and 960 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ Feature: Add blocks to my profile page
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
| student2 | Student | 2 | student2@asd.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
+4 -4
View File
@@ -7,10 +7,10 @@ Feature: Deleting users
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| user1 | User | One | one@asd.com |
| user2 | User | Two | two@asd.com |
| user3 | User | Three | three@asd.com |
| user4 | User | Four | four@asd.com |
| user1 | User | One | one@example.com |
| user2 | User | Two | two@example.com |
| user3 | User | Three | three@example.com |
| user4 | User | Four | four@example.com |
@javascript
Scenario: Deleting one user at a time
+9 -9
View File
@@ -7,10 +7,10 @@ Feature: Filter users by idnumber
Background:
Given the following "users" exist:
| username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | 1 | teacher@asd.com | 0000002 |
| student1 | Student1 | 1 | student1@asd.com | 0000003 |
| student2 | Student2 | 1 | student2@asd.com | 2000000 |
| student3 | Student3 | 1 | student3@asd.com | 3000000 |
| teacher1 | Teacher | 1 | teacher@example.com | 0000002 |
| student1 | Student1 | 1 | student1@example.com | 0000003 |
| student2 | Student2 | 1 | student2@example.com | 2000000 |
| student3 | Student3 | 1 | student3@example.com | 3000000 |
And I log in as "admin"
And I am on site homepage
And I expand "Site administration" node
@@ -23,7 +23,7 @@ Feature: Filter users by idnumber
@javascript
Scenario: Filtering id numbers - with case "is empty"
# We should see see admin on the user list, the following e-mail is admin's e-mail.
Then I should see "moodle@moodlemoodle.com" in the "users" "table"
Then I should see "moodle@example.com" in the "users" "table"
And I should see "Teacher" in the "users" "table"
And I should see "Student1" in the "users" "table"
And I should see "Student2" in the "users" "table"
@@ -32,7 +32,7 @@ Feature: Filter users by idnumber
And I set the field "id_idnumber_op" to "is empty"
When I press "Add filter"
# We should see admin on the user list, the following e-mail is admin's e-mail.
Then I should see "moodle@moodlemoodle.com" in the "users" "table"
Then I should see "moodle@example.com" in the "users" "table"
And I should not see "Teacher" in the "users" "table"
And I should not see "Student1" in the "users" "table"
And I should not see "Student2" in the "users" "table"
@@ -41,7 +41,7 @@ Feature: Filter users by idnumber
@javascript
Scenario Outline: Filtering id numbers - with all other cases
# We should see see admin on the user list, the following e-mail is admin's e-mail.
Then I should see "moodle@moodlemoodle.com" in the "users" "table"
Then I should see "moodle@example.com" in the "users" "table"
And I should see "Teacher" in the "users" "table"
And I should see "Student1" in the "users" "table"
And I should see "Student2" in the "users" "table"
@@ -50,7 +50,7 @@ Feature: Filter users by idnumber
And I set the field "id_idnumber_op" to "<Category>"
And I set the field "idnumber" to "<Argument>"
When I press "Add filter"
Then I should <Admin's Visibility> "moodle@moodlemoodle.com" in the "users" "table"
Then I should <Admin's Visibility> "moodle@example.com" in the "users" "table"
And I should <Teacher's Vis> "Teacher" in the "users" "table"
And I should <S1's Vis> "Student1" in the "users" "table"
And I should <S2's Vis> "Student2" in the "users" "table"
@@ -62,4 +62,4 @@ Examples:
| doesn't contain | 2 | see | not see | see | not see | see |
| is equal to | 2000000 | not see | not see | not see | see | not see |
| starts with | 0 | not see | see | see | not see | not see |
| ends with | 0 | not see | not see | not see | see | see |
| ends with | 0 | not see | not see | not see | see | see |
+2 -2
View File
@@ -7,8 +7,8 @@ Feature: Reset my profile page to default
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
| student2 | Student | 2 | student2@asd.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
+7 -7
View File
@@ -7,9 +7,9 @@ Feature: Tables can be sorted by additional names
Background:
Given the following "users" exist:
| username | firstname | lastname | middlename | alternatename | email | idnumber |
| student1 | Annie | Edison | Faith | Anne | student1@mail.com | s1 |
| student2 | George | Bradley | David | Gman | student2@mail.com | s2 |
| student3 | Travis | Sutcliff | Peter | Mr T | student3@mail.com | s3 |
| student1 | Annie | Edison | Faith | Anne | student1@example.com | s1 |
| student2 | George | Bradley | David | Gman | student2@example.com | s2 |
| student3 | Travis | Sutcliff | Peter | Mr T | student3@example.com | s3 |
And I log in as "admin"
And I navigate to "User policies" node in "Site administration > Users > Permissions"
And the following config values are set as admin:
@@ -21,10 +21,10 @@ Feature: Tables can be sorted by additional names
Given I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
Then the following should exist in the "users" table:
| First name / Middle name / Alternate name / Surname | Email address |
| Admin User | moodle@moodlemoodle.com |
| Annie Faith Anne Edison | student1@mail.com |
| George David Gman Bradley | student2@mail.com |
| Travis Peter Mr T Sutcliff | student3@mail.com |
| Admin User | moodle@example.com |
| Annie Faith Anne Edison | student1@example.com |
| George David Gman Bradley | student2@example.com |
| Travis Peter Mr T Sutcliff | student3@example.com |
And "Annie Faith Anne Edison" "table_row" should appear before "George David Gman Bradley" "table_row"
And "George David Gman Bradley" "table_row" should appear before "Travis Peter Mr T Sutcliff" "table_row"
And I follow "Middle name"
@@ -7,10 +7,10 @@ Feature: The student can navigate to the My grades page and user grade report.
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
| student2 | Student | 2 | student2@asd.com |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| parent1 | Parent | 1 | parent1@asd.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@example.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| parent1 | Parent | 1 | parent1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
@@ -84,7 +84,7 @@ Feature: The student can navigate to the My grades page and user grade report.
And I follow "Student 1's preferences"
And I follow "Assign roles relative to this user"
And I follow "Parent"
And I click on "//select[@id='addselect']/descendant::option[contains(., 'Parent 1 (parent1@asd.com)')]" "xpath_element"
And I click on "//select[@id='addselect']/descendant::option[contains(., 'Parent 1 (parent1@example.com)')]" "xpath_element"
And I click on "Add" "button"
And I log out
And I log in as "parent1"
+3 -3
View File
@@ -7,9 +7,9 @@ Feature: Access to full profiles of users
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
| student2 | Student | 2 | student2@asd.com |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@example.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
+8 -8
View File
@@ -49,7 +49,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'idnumber' => 'idnumbertest1',
'firstname' => 'First Name User Test 1',
'lastname' => 'Last Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'address' => '2 Test Street Perth 6000 WA',
'phone1' => '01010101010',
'phone2' => '02020203',
@@ -208,7 +208,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'idnumber' => 'idnumbertest1',
'firstname' => 'First Name User Test 1',
'lastname' => 'Last Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'address' => '2 Test Street Perth 6000 WA',
'phone1' => '01010101010',
'phone2' => '02020203',
@@ -370,7 +370,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'idnumber' => 'idnumbertest1',
'firstname' => 'First Name User Test 1',
'lastname' => 'Last Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'address' => '2 Test Street Perth 6000 WA',
'phone1' => '01010101010',
'phone2' => '02020203',
@@ -418,7 +418,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
// Do the same call as admin to receive all possible fields.
$this->setAdminUser();
$USER->email = "admin@fakeemail.com";
$USER->email = "admin@example.com";
// Call the external function.
$enrolledusers = core_user_external::get_course_user_profiles(array(
@@ -475,7 +475,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'lastnamephonetic' => '最後のお名前のテスト一号',
'firstnamephonetic' => 'お名前のテスト一号',
'alternatename' => 'Alternate Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'description' => 'This is a description for user 1',
'city' => 'Perth',
'country' => 'au'
@@ -555,7 +555,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'idnumber' => 'idnumbertest1',
'firstname' => 'First Name User Test 1',
'lastname' => 'Last Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'address' => '2 Test Street Perth 6000 WA',
'phone1' => '01010101010',
'phone2' => '02020203',
@@ -596,7 +596,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
// Do the same call as admin to receive all possible fields.
$this->setAdminUser();
$USER->email = "admin@fakeemail.com";
$USER->email = "admin@example.com";
// Call the external function.
$returnedusers = core_user_external::get_users_by_id(array(
@@ -654,7 +654,7 @@ class core_user_externallib_testcase extends externallib_advanced_testcase {
'lastnamephonetic' => '最後のお名前のテスト一号',
'firstnamephonetic' => 'お名前のテスト一号',
'alternatename' => 'Alternate Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'description' => 'This is a description for user 1',
'city' => 'Perth',
'country' => 'au'
+1 -1
View File
@@ -112,7 +112,7 @@ class core_userliblib_testcase extends advanced_testcase {
'lastnamephonetic' => '最後のお名前のテスト一号',
'firstnamephonetic' => 'お名前のテスト一号',
'alternatename' => 'Alternate Name User Test 1',
'email' => 'usertest1@email.com',
'email' => 'usertest1@example.com',
'description' => 'This is a description for user 1',
'city' => 'Perth',
'country' => 'au'