diff --git a/public/availability/condition/completion/tests/behat/availability_completion_previous.feature b/public/availability/condition/completion/tests/behat/availability_completion_previous.feature index 8dff21f5336..5e0880de123 100644 --- a/public/availability/condition/completion/tests/behat/availability_completion_previous.feature +++ b/public/availability/condition/completion/tests/behat/availability_completion_previous.feature @@ -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" diff --git a/public/availability/tests/behat/display_availability.feature b/public/availability/tests/behat/display_availability.feature index 9b6d943aade..c0ce6dcd9f4 100644 --- a/public/availability/tests/behat/display_availability.feature +++ b/public/availability/tests/behat/display_availability.feature @@ -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" diff --git a/public/availability/tests/behat/edit_availability.feature b/public/availability/tests/behat/edit_availability.feature index b7d18668ce2..243a445edc0 100644 --- a/public/availability/tests/behat/edit_availability.feature +++ b/public/availability/tests/behat/edit_availability.feature @@ -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" diff --git a/public/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature b/public/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature index 806388566c1..c57061d7c1b 100644 --- a/public/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature +++ b/public/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature @@ -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 diff --git a/public/course/format/tests/behat/activity_chooser.feature b/public/course/format/tests/behat/activity_chooser.feature index 79266983686..200175d5704 100644 --- a/public/course/format/tests/behat/activity_chooser.feature +++ b/public/course/format/tests/behat/activity_chooser.feature @@ -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. diff --git a/public/mod/lesson/tests/behat/lesson_restrict_access.feature b/public/mod/lesson/tests/behat/lesson_restrict_access.feature index 92755880942..7f1fb96cb55 100644 --- a/public/mod/lesson/tests/behat/lesson_restrict_access.feature +++ b/public/mod/lesson/tests/behat/lesson_restrict_access.feature @@ -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