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:
@@ -10,8 +10,8 @@ Feature: availability_grade
|
||||
| Course 1 | C1 | topics | 1 |
|
||||
And the following "users" exist:
|
||||
| username | email |
|
||||
| teacher1 | t@example.org |
|
||||
| student1 | s@example.org |
|
||||
| teacher1 | t@example.com |
|
||||
| student1 | s@example.com |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
@@ -104,8 +104,8 @@ Feature: availability_grade
|
||||
# Give the assignment 40%.
|
||||
And I follow "A1"
|
||||
And I follow "View/grade all submissions"
|
||||
# Pick the grade link in the row that has s@example.org in it.
|
||||
And I click on "//a[contains(@href, 'action=grade') and ancestor::tr/td[normalize-space(.) = 's@example.org']]/img" "xpath_element"
|
||||
# Pick the grade link in the row that has s@example.com in it.
|
||||
And I click on "//a[contains(@href, 'action=grade') and ancestor::tr/td[normalize-space(.) = 's@example.com']]/img" "xpath_element"
|
||||
And I set the field "Grade out of 100" to "40"
|
||||
And I click on "Save changes" "button"
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ Feature: availability_profile
|
||||
| Course 1 | C1 | topics | 1 |
|
||||
And the following "users" exist:
|
||||
| username | email |
|
||||
| teacher1 | t@example.org |
|
||||
| student1 | s@example.org |
|
||||
| teacher1 | t@example.com |
|
||||
| student1 | s@example.com |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
@@ -37,7 +37,7 @@ Feature: availability_profile
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "User profile" "button"
|
||||
And I set the field "User profile field" to "Email address"
|
||||
And I set the field "Value to compare against" to "s@example.org"
|
||||
And I set the field "Value to compare against" to "s@example.com"
|
||||
And I click on ".availability-item .availability-eye img" "css_element"
|
||||
And I click on "Save and return to course" "button"
|
||||
|
||||
@@ -51,7 +51,7 @@ Feature: availability_profile
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "User profile" "button"
|
||||
And I set the field "User profile field" to "Email address"
|
||||
And I set the field "Value to compare against" to "q@example.org"
|
||||
And I set the field "Value to compare against" to "q@example.com"
|
||||
And I click on ".availability-item .availability-eye img" "css_element"
|
||||
And I click on "Save and return to course" "button"
|
||||
|
||||
@@ -78,7 +78,7 @@ Feature: availability_profile
|
||||
|
||||
# Set field value for user.
|
||||
And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
|
||||
And I click on "a[title=Edit]" "css_element" in the "s@example.org" "table_row"
|
||||
And I click on "a[title=Edit]" "css_element" in the "s@example.com" "table_row"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Super field" to "Bananaman"
|
||||
And I click on "Update profile" "button"
|
||||
|
||||
@@ -75,7 +75,7 @@ Feature: display_availability
|
||||
And I press "Add restriction..."
|
||||
And I click on "User profile" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field "User profile field" to "Email address"
|
||||
And I set the field "Value to compare against" to "email@example.org"
|
||||
And I set the field "Value to compare against" to "email@example.com"
|
||||
And I set the field "Method of comparison" to "is equal to"
|
||||
And I press "Save and return to course"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user