MDL-87593 lang: Use the fixed strings in tests
This commit is contained in:
+8
-8
@@ -32,7 +32,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save and return to course"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -58,7 +58,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save and return to course"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -83,7 +83,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save and return to course"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -112,7 +112,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save changes"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -138,7 +138,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
Then the "Activity or resource" select box should not contain "Previous activity with completion"
|
||||
|
||||
# Set Page2 restriction to Previous Activity with completion and delete Page1.
|
||||
@@ -148,7 +148,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save and return to course"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -170,7 +170,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save changes"
|
||||
Then I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
@@ -184,7 +184,7 @@ Feature: Confirm that availability_completion works with previous activity setti
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "Previous activity with completion"
|
||||
And I press "Save changes"
|
||||
And I should see "Not available unless: The previous activity with completion" in the "region-main" "region"
|
||||
|
||||
@@ -180,4 +180,4 @@ Feature: Display availability for activities and sections
|
||||
And I should not see "Date" in the "Restrict access" "fieldset"
|
||||
And I press "Add restriction..."
|
||||
And I click on "Grade" "button" in the "Add restriction..." "dialogue"
|
||||
And the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Displayed if student"
|
||||
And the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Item name displayed"
|
||||
|
||||
@@ -89,13 +89,13 @@ Feature: edit_availability
|
||||
And I should see "Date" in the "Restrict access" "fieldset"
|
||||
And ".availability-item .availability-eye img" "css_element" should be visible
|
||||
And ".availability-item .availability-delete img" "css_element" should be visible
|
||||
And the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Displayed if student"
|
||||
And the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Item name displayed"
|
||||
|
||||
# Toggle the eye icon.
|
||||
When I click on ".availability-item .availability-eye img" "css_element"
|
||||
Then the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Hidden entirely"
|
||||
When I click on ".availability-item .availability-eye img" "css_element"
|
||||
Then the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Displayed if student"
|
||||
Then the "alt" attribute of ".availability-item .availability-eye img" "css_element" should contain "Item name displayed"
|
||||
|
||||
# Click the delete button.
|
||||
When I click on ".availability-item .availability-delete img" "css_element"
|
||||
|
||||
+3
-3
@@ -115,7 +115,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "task A"
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
@@ -164,7 +164,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I set the field "Activity or resource" to "task A"
|
||||
And I press "Save and return to course"
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
@@ -237,7 +237,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field "Activity or resource" to "task A"
|
||||
And I click on "Displayed if student doesn't meet this condition • Click to hide" "link"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition • Click to hide" "link"
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
|
||||
@@ -173,7 +173,7 @@ Feature: Display and choose from the available activities in course
|
||||
And I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Database" in the "Add an activity or resource" "dialogue"
|
||||
# Test help.
|
||||
And I set the field "search" to "Define the information each entry should include, such as text, dates, images, or links."
|
||||
And I set the field "search" to "Define the information each entry should include, such as text, dates, images, or links"
|
||||
And I should see "1 results found" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Database" in the "Add an activity or resource" "dialogue"
|
||||
# Test tip.
|
||||
|
||||
@@ -40,7 +40,7 @@ Feature: Lesson activity access can be restricted
|
||||
And I click on "Group" "button" in the "Add restriction..." "dialogue"
|
||||
# Set only Group 1 can access activity
|
||||
And I set the field "Group" in the "Restrict access" "fieldset" to "Group 1"
|
||||
And I click on "Displayed if student doesn't meet this condition" "button"
|
||||
And I click on "Item name displayed with access restriction information if student doesn't meet this condition" "button"
|
||||
And I press "Save and return to course"
|
||||
# Confirm that student1 can see lesson but student2 can't
|
||||
When I am on the "Course 1" course page logged in as <user>
|
||||
|
||||
Reference in New Issue
Block a user