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
@@ -7,7 +7,7 @@ Feature: Change number of discussions displayed
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | category | format |
| Course 1 | C1 | 0 | social |
@@ -7,7 +7,7 @@ Feature: Sections can be edited and deleted in topics format
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 |
@@ -7,7 +7,7 @@ Feature: Sections can be edited and deleted in weeks format
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | startdate |
| Course 1 | C1 | weeks | 0 | 5 | 957139200 |
@@ -8,7 +8,7 @@ Feature: Open the edit menu when a block is docked
Scenario: Open the action menu with a block docked
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | weeks |
@@ -8,7 +8,7 @@ Feature: Toggle activities groups mode from the course page
Scenario: Groups mode toggle with javascript enabled
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
@@ -8,8 +8,8 @@ Feature: Indent items on the course page
Scenario: Indent course items with Javascript enabled
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | weeks |
@@ -8,8 +8,8 @@ Feature: Toggle activities visibility from the course page
Scenario: Hide/Show toggle with javascript enabled
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
@@ -44,7 +44,7 @@ Feature: Toggle activities visibility from the course page
Scenario: Activities can be shown and hidden inside a hidden section
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | numsections |
| Course 1 | C1 | topics | 2 |
@@ -71,7 +71,7 @@ Feature: Toggle activities visibility from the course page
Scenario: Activities can be shown and hidden inside an orphaned section
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | numsections |
| Course 1 | C1 | topics | 2 |
+2 -2
View File
@@ -7,8 +7,8 @@ Feature: Add activities to courses
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 |
+2 -2
View File
@@ -19,7 +19,7 @@ Feature: Course activity controls works as expected
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
@@ -99,7 +99,7 @@ Feature: Course activity controls works as expected
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
+2 -2
View File
@@ -8,8 +8,8 @@ Feature: Managers can create courses
Scenario: Courses are created with the default forum and blocks
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And I log in as "admin"
And I create a course with:
| Course full name | Course 1 |
+1 -1
View File
@@ -8,7 +8,7 @@ Feature: Edit course settings
Scenario: Edit course settings
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | summary | format |
| Course 1 | C1 | <p>Course summary</p> | topics |
+1 -1
View File
@@ -7,7 +7,7 @@ Feature: Force group mode in a course
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
@@ -7,7 +7,7 @@ Feature: The maximum number of weeks/topics in a course can be configured
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| manager1 | Manager | 1 | manager1@asd.com |
| manager1 | Manager | 1 | manager1@example.com |
And the following "system role assigns" exist:
| user | course | role |
| manager1 | Acceptance test site | manager |
+1 -1
View File
@@ -7,7 +7,7 @@ Feature: Activities can be moved between sections
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 |
+1 -1
View File
@@ -7,7 +7,7 @@ Feature: Sections can be moved
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 |
@@ -7,8 +7,8 @@ Feature: Browse course list and return back from enrolment page
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| user1 | User | 1 | user1@asd.com |
| user2 | User | 2 | user2@asd.com |
| user1 | User | 1 | user1@example.com |
| user2 | User | 2 | user2@example.com |
And the following "categories" exist:
| name | category | idnumber |
| Sample category | 0 | CAT1 |
+3 -3
View File
@@ -8,9 +8,9 @@ Feature: Rename roles within a course
Scenario: Rename roles within a course
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher2 | Teacher | 2 | teacher2@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| teacher2 | Teacher | 2 | teacher2@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
@@ -7,7 +7,7 @@ Feature: Restrict activities availability
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | category | format |
| Course 1 | C1 | 0 | topics |
@@ -8,8 +8,8 @@ Feature: Topic's course sections highlighting
Scenario Outline: Highlight a topic's course section with course paged mode and without it
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay |
| Course 1 | C1 | topics | <coursedisplay> |
@@ -8,8 +8,8 @@ Feature: Show/hide course sections
Scenario: Show / hide section icon functions correctly
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
@@ -7,7 +7,7 @@ Feature: View subfolders in a course in-line
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 |
@@ -64,4 +64,4 @@ Feature: View subfolders in a course in-line
And I set the field "Show subfolders expanded" to "1"
And I press "Save and return to course"
Then I should see "Test subfolder 1"
And I should see "Test sub subfolder"
And I should see "Test sub subfolder"
+5 -5
View File
@@ -468,7 +468,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Admin can delete a course.
$this->setAdminUser();
// Validate_context() will fail as the email is not set by $this->setAdminUser().
$USER->email = 'emailtopass@contextvalidation.me';
$USER->email = 'emailtopass@example.com';
$course1 = self::getDataGenerator()->create_course();
$course2 = self::getDataGenerator()->create_course();
@@ -1242,7 +1242,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me';
$USER->email = 'emailtopass@example.com';
// Import from course1 to course2.
core_course_external::import_course($course1->id, $course2->id, 0);
@@ -1292,7 +1292,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me';
$USER->email = 'emailtopass@example.com';
// Import from course1 to course2 without deleting content.
core_course_external::import_course($course1->id, $course2->id, 0);
@@ -1338,7 +1338,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me';
$USER->email = 'emailtopass@example.com';
// Import from course1 to course2 without deleting content, but excluding
// activities.
@@ -1383,7 +1383,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me';
$USER->email = 'emailtopass@example.com';
// Import from course1 to course2, deleting content.
core_course_external::import_course($course1->id, $course2->id, 1);