Commit 0fe86bbd authored by Rajesh Taneja's avatar Rajesh Taneja
Browse files

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

asd.com is a valid domain, we should use reserved domain names for testing
parent d302ba23
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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 |
......
......@@ -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"
\ No newline at end of file
And I should see "Test sub subfolder"
......@@ -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);
......
......@@ -7,8 +7,8 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
Background:
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 |
......
......@@ -97,7 +97,7 @@ class enrol_imsenterprise_testcase extends advanced_testcase {
$user1 = new StdClass();
$user1->username = 'u1';
$user1->email = 'u1@u1.org';
$user1->email = 'u1@example.com';
$user1->firstname = 'U';
$user1->lastname = '1';
......@@ -357,7 +357,7 @@ class enrol_imsenterprise_testcase extends advanced_testcase {
$user1 = new StdClass();
$user1->username = 'u1';
$user1->email = 'u1@u1.org';
$user1->email = 'u1@example.com';
$user1->firstname = 'U';
$user1->lastname = '1';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment