From 9ce040a7a7aa9b170b1cba724db98a81c26e8011 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 21 Jul 2021 09:43:43 +0800 Subject: [PATCH 1/7] MDL-72093 navigation: Replace strings in course and module secondary nav --- lang/en/admin.php | 4 +++- lang/en/deprecated.txt | 1 + lib/classes/navigation/views/secondary.php | 4 ++-- lib/navigationlib.php | 5 +++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lang/en/admin.php b/lang/en/admin.php index 0e4755e2f19..5723e87c1c6 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -417,7 +417,6 @@ $string['courselistshortnames'] = 'Display extended course names'; $string['courselistshortnames_desc'] = 'If enabled, course short names will be displayed in addition to full names in course lists. If required, extended course names may be customised by editing the \'courseextendednamedisplay\' language string using the language customisation feature.'; $string['coursemgmt'] = 'Manage courses and categories'; $string['courseoverview'] = 'Course overview'; -$string['coursepage'] = 'Course page'; $string['courserequestnotify'] = 'Course request notification'; $string['courserequestnotifyemail'] = 'User {$a->user} requested a new course at {$a->link}'; $string['courserequests'] = 'Course requests'; @@ -1550,3 +1549,6 @@ $string['configenableactivitychooser'] = 'The activity chooser is a dialog box w $string['enableactivitychooser'] = 'Enable activity chooser'; $string['configmodchooserdefault'] = 'Should the activity chooser be presented to users by default?'; $string['modchooserdefault'] = 'Activity chooser default'; + +// Deprecated since Moodle 4.0. +$string['coursepage'] = 'Course page'; diff --git a/lang/en/deprecated.txt b/lang/en/deprecated.txt index 79d141c336e..d99649973cd 100644 --- a/lang/en/deprecated.txt +++ b/lang/en/deprecated.txt @@ -157,3 +157,4 @@ coursepreferences,core yourprogress,core_completion importfrominstructions,core_calendar proceedtocourse,core_enrol +coursepage,core_admin diff --git a/lib/classes/navigation/views/secondary.php b/lib/classes/navigation/views/secondary.php index 4cc2cf71f49..e2c0b6b7b2a 100644 --- a/lib/classes/navigation/views/secondary.php +++ b/lib/classes/navigation/views/secondary.php @@ -203,7 +203,7 @@ class secondary extends view { $navigation = $this->page->navigation; $url = new \moodle_url('/course/view.php', ['id' => $course->id, 'sesskey' => sesskey()]); - $this->add(get_string('coursepage', 'admin'), $url, self::TYPE_COURSE, null, 'coursehome'); + $this->add(get_string('course'), $url, self::TYPE_COURSE, null, 'coursehome'); $nodes = $this->get_default_course_mapping(); $nodesordered = $this->get_leaf_nodes($settingsnav, $nodes['settings'] ?? []); @@ -234,7 +234,7 @@ class secondary extends view { if ($mainnode) { $url = new \moodle_url('/mod/' . $this->page->activityname . '/view.php', ['id' => $this->page->cm->id]); $setactive = $url->compare($this->page->url, URL_MATCH_BASE); - $node = $this->add(get_string('module', 'course'), $url, null, null, 'modulepage'); + $node = $this->add(get_string('modulename', $this->page->activityname), $url, null, null, 'modulepage'); if ($setactive) { $node->make_active(); } diff --git a/lib/navigationlib.php b/lib/navigationlib.php index fdd52a5052e..7249f9e784f 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -4494,7 +4494,8 @@ class settings_navigation extends navigation_node { if ($adminoptions->update) { // Add the course settings link $url = new moodle_url('/course/edit.php', array('id'=>$course->id)); - $coursenode->add(get_string('editsettings'), $url, self::TYPE_SETTING, null, 'editsettings', new pix_icon('i/settings', '')); + $coursenode->add(get_string('settings'), $url, self::TYPE_SETTING, null, + 'editsettings', new pix_icon('i/settings', '')); } if ($adminoptions->editcompletion) { @@ -4679,7 +4680,7 @@ class settings_navigation extends navigation_node { // Settings for the module if (has_capability('moodle/course:manageactivities', $this->page->cm->context)) { $url = new moodle_url('/course/modedit.php', array('update' => $this->page->cm->id, 'return' => 1)); - $modulenode->add(get_string('editsettings'), $url, navigation_node::TYPE_SETTING, null, 'modedit'); + $modulenode->add(get_string('settings'), $url, navigation_node::TYPE_SETTING, null, 'modedit'); } // Assign local roles if (count(get_assignable_roles($this->page->cm->context))>0) { From c8d992311bb598ddb3e3883d39e9084608c4eaa9 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 21 Jul 2021 09:49:41 +0800 Subject: [PATCH 2/7] MDL-72093 booktool_exportimscp: Replace strings in secondary nav --- mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php | 4 +++- mod/book/tool/exportimscp/lang/en/deprecated.txt | 1 + mod/book/tool/exportimscp/lib.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 mod/book/tool/exportimscp/lang/en/deprecated.txt diff --git a/mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php b/mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php index b8dd8a8bfe5..1eb92f2de66 100644 --- a/mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php +++ b/mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php @@ -26,7 +26,9 @@ defined('MOODLE_INTERNAL') || die; $string['eventbookexported'] = 'Book exported'; $string['exportimscp:export'] = 'Export book as IMS content package'; -$string['generateimscp'] = 'Generate IMS CP'; $string['nochapters'] = 'No book chapters found, so unable to export to IMS CP.'; $string['pluginname'] = 'Book IMS CP export'; $string['privacy:metadata'] = 'The Book IMS CP export plugin does not store any personal data.'; + +// Deprecated since Moodle 4.0. +$string['generateimscp'] = 'Generate IMS CP'; diff --git a/mod/book/tool/exportimscp/lang/en/deprecated.txt b/mod/book/tool/exportimscp/lang/en/deprecated.txt new file mode 100644 index 00000000000..fbce1afc67d --- /dev/null +++ b/mod/book/tool/exportimscp/lang/en/deprecated.txt @@ -0,0 +1 @@ +generateimscp,booktool_exportimscp \ No newline at end of file diff --git a/mod/book/tool/exportimscp/lib.php b/mod/book/tool/exportimscp/lib.php index 732275f7f43..19a96bc6c40 100644 --- a/mod/book/tool/exportimscp/lib.php +++ b/mod/book/tool/exportimscp/lib.php @@ -36,6 +36,6 @@ function booktool_exportimscp_extend_settings_navigation(settings_navigation $se if (has_capability('booktool/exportimscp:export', $PAGE->cm->context)) { $url = new moodle_url('/mod/book/tool/exportimscp/index.php', array('id'=>$PAGE->cm->id)); $icon = new pix_icon('generate', '', 'booktool_exportimscp', array('class'=>'icon')); - $node->add(get_string('generateimscp', 'booktool_exportimscp'), $url, navigation_node::TYPE_SETTING, null, null, $icon); + $node->add(get_string('download'), $url, navigation_node::TYPE_SETTING, null, null, $icon); } } From 55dd65a1f2caf426d98b5825fd575098cd773ba7 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 21 Jul 2021 10:06:27 +0800 Subject: [PATCH 3/7] MDL-72093 mod_chat: Replace strings in secondary nav --- mod/chat/lang/en/chat.php | 1 + mod/chat/lib.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/chat/lang/en/chat.php b/mod/chat/lang/en/chat.php index 8c1ff566792..9e323dc985a 100644 --- a/mod/chat/lang/en/chat.php +++ b/mod/chat/lang/en/chat.php @@ -123,6 +123,7 @@ $string['nopermissiontoseethechatlog'] = 'You don\'t have permission to see the $string['oldping'] = 'Disconnect timeout'; $string['page-mod-chat-x'] = 'Any chat module page'; $string['pastchats'] = 'Past chat sessions'; +$string['pastsessions'] = 'Past sessions'; $string['pluginadministration'] = 'Chat administration'; $string['pluginname'] = 'Chat'; $string['privacy:metadata:chat_messages_current'] = 'Current chat session. This data is temporary and is deleted after the chat session is deleted'; diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 78bbef7cf39..06abf29fc9f 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -1331,7 +1331,8 @@ function chat_extend_settings_navigation(settings_navigation $settings, navigati if ($chat->studentlogs || has_capability('mod/chat:readlog', $PAGE->cm->context)) { if ($DB->get_records_select('chat_messages', "chatid = ? $groupselect", array($chat->id))) { - $chatnode->add(get_string('viewreport', 'chat'), new moodle_url('/mod/chat/report.php', array('id' => $PAGE->cm->id))); + $chatnode->add(get_string('pastsessions', 'chat'), + new moodle_url('/mod/chat/report.php', array('id' => $PAGE->cm->id))); } } } From a6f665a971271bd44580637b5464c625f8c76bd3 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 21 Jul 2021 10:12:40 +0800 Subject: [PATCH 4/7] MDL-72093 mod_choice: Replace strings in secondary nav --- mod/choice/lib.php | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 98584b7e117..9242511ab2b 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -864,28 +864,8 @@ function choice_extend_settings_navigation(settings_navigation $settings, naviga global $PAGE; if (has_capability('mod/choice:readresponses', $PAGE->cm->context)) { - - $groupmode = groups_get_activity_groupmode($PAGE->cm); - if ($groupmode) { - groups_get_activity_group($PAGE->cm, true); - } - - $choice = choice_get_choice($PAGE->cm->instance); - - // Check if we want to include responses from inactive users. - $onlyactive = $choice->includeinactive ? false : true; - - // Big function, approx 6 SQL calls per user. - $allresponses = choice_get_response_data($choice, $PAGE->cm, $groupmode, $onlyactive); - - $allusers = []; - foreach($allresponses as $optionid => $userlist) { - if ($optionid) { - $allusers = array_merge($allusers, array_keys($userlist)); - } - } - $responsecount = count(array_unique($allusers)); - $choicenode->add(get_string("viewallresponses", "choice", $responsecount), new moodle_url('/mod/choice/report.php', array('id'=>$PAGE->cm->id))); + $choicenode->add(get_string('responses', 'choice'), + new moodle_url('/mod/choice/report.php', array('id' => $PAGE->cm->id))); } } From a360abedf8b0c586ee05035e979ce1d3f9edf60b Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 21 Jul 2021 10:17:34 +0800 Subject: [PATCH 5/7] MDL-72093 mod_workshop: Replace strings in secondary nav --- mod/workshop/lang/en/workshop.php | 1 + mod/workshop/lib.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/workshop/lang/en/workshop.php b/mod/workshop/lang/en/workshop.php index ffcc1374549..a25d5c4b7ce 100644 --- a/mod/workshop/lang/en/workshop.php +++ b/mod/workshop/lang/en/workshop.php @@ -335,6 +335,7 @@ $string['showingperpagechange'] = 'Change ...'; $string['someuserswosubmission'] = 'There is at least one author who has not yet submitted their work'; $string['sortasc'] = 'Ascending sort'; $string['sortdesc'] = 'Descending sort'; +$string['submissionsallocation'] = 'Submissions allocation'; $string['strategy'] = 'Grading strategy'; $string['strategy_help'] = 'The grading strategy determines the assessment form used and the method of grading submissions. There are 4 options: diff --git a/mod/workshop/lib.php b/mod/workshop/lib.php index a6d0273a935..41fbb0efc0f 100644 --- a/mod/workshop/lib.php +++ b/mod/workshop/lib.php @@ -1633,11 +1633,11 @@ function workshop_extend_settings_navigation(settings_navigation $settingsnav, n if (has_capability('mod/workshop:editdimensions', $PAGE->cm->context)) { $url = new moodle_url('/mod/workshop/editform.php', array('cmid' => $PAGE->cm->id)); - $workshopnode->add(get_string('editassessmentform', 'workshop'), $url, settings_navigation::TYPE_SETTING); + $workshopnode->add(get_string('assessmentform', 'workshop'), $url, settings_navigation::TYPE_SETTING); } if (has_capability('mod/workshop:allocate', $PAGE->cm->context)) { $url = new moodle_url('/mod/workshop/allocation.php', array('cmid' => $PAGE->cm->id)); - $workshopnode->add(get_string('allocate', 'workshop'), $url, settings_navigation::TYPE_SETTING); + $workshopnode->add(get_string('submissionsallocation', 'workshop'), $url, settings_navigation::TYPE_SETTING); } } From ecf8e77f196c863e8233300f138c28330356580c Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 27 Jul 2021 12:55:07 +0800 Subject: [PATCH 6/7] MDL-72093 navigation: Update secondary nav unit tests --- lib/tests/navigation/views/secondary_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/navigation/views/secondary_test.php b/lib/tests/navigation/views/secondary_test.php index a1a217cb91b..85767ae9076 100644 --- a/lib/tests/navigation/views/secondary_test.php +++ b/lib/tests/navigation/views/secondary_test.php @@ -134,8 +134,8 @@ class secondary_test extends \advanced_testcase { */ public function test_setting_initialise_provider(): array { return [ - 'Testing in a course context' => ['course', 'coursehome', 'courseheader', 'Course page'], - 'Testing in a module context' => ['module', 'modulepage', 'activityheader', 'Activity'], + 'Testing in a course context' => ['course', 'coursehome', 'courseheader', 'Course'], + 'Testing in a module context' => ['module', 'modulepage', 'activityheader', 'Assignment'], 'Testing in a site admin' => ['system', 'siteadminnode', 'homeheader', 'Site administration'], ]; } From 7d821080f0682ef17b7657700cb02a933d5c82f2 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 27 Jul 2021 14:26:05 +0800 Subject: [PATCH 7/7] MDL-72093 navigation: Update behat tests --- .../behat/tests/behat/data_generators.feature | 2 +- .../tests/behat/edit_permissions.feature | 2 +- .../tests/behat/get_and_set_fields.feature | 18 ++++----- .../get_and_set_fields_in_containers.feature | 2 +- .../tests/behat/conditional_bug.feature | 2 +- .../tests/behat/edit_availability.feature | 6 +-- .../behat/restore_moodle2_courses.feature | 18 ++++----- badges/tests/behat/award_badge.feature | 4 +- badges/tests/behat/award_badge_groups.feature | 2 +- .../behat/addunsupportedactivity.feature | 2 +- .../tests/behat/highscoreswithscales.feature | 2 +- .../highscoreswithscalesandgroups.feature | 2 +- .../behat/highscoreswithvisiblegroups.feature | 2 +- .../tests/behat/lowscoreswithscales.feature | 2 +- .../lowscoreswithscalesandgroups.feature | 2 +- .../tests/behat/block_calendar_month.feature | 4 +- .../behat/block_completionstatus.feature | 4 +- ...mpletionstatus_activity_completion.feature | 4 +- .../behat/glossary_random_global.feature | 2 +- .../behat/block_myoverview_progress.feature | 2 +- .../tests/behat/display_news.feature | 4 +- .../tests/behat/structural_changes.feature | 10 ++--- .../behat/block_search_forums_course.feature | 4 +- blocks/tests/behat/manage_blocks.feature | 2 +- .../activity_completion_criteria.feature | 2 +- completion/tests/behat/behat_completion.php | 2 +- .../bulk_edit_activity_completion.feature | 2 +- .../completion_course_page_display.feature | 2 +- ...ompletion_no_calendar_capabilities.feature | 4 +- ...stom_completion_display_conditions.feature | 6 +-- .../behat/default_activity_completion.feature | 2 +- .../behat/enable_manual_complete_mark.feature | 2 +- .../restrict_section_availability.feature | 2 +- .../tests/behat/edit_format_course.feature | 2 +- .../social_adjust_discussion_count.feature | 6 +-- .../behat/activities_edit_completion.feature | 4 +- .../behat/activities_group_icons.feature | 2 +- .../tests/behat/course_activity_dates.feature | 4 +- ...ourse_download_content_permissions.feature | 14 +++---- .../behat/course_relativedatesmode.feature | 4 +- course/tests/behat/coursetags.feature | 6 +-- .../tests/behat/customfields_locked.feature | 4 +- .../behat/customfields_visibility.feature | 6 +-- course/tests/behat/edit_settings.feature | 4 +- course/tests/behat/force_group_mode.feature | 2 +- course/tests/behat/move_activities.feature | 4 +- course/tests/behat/move_sections.feature | 4 +- course/tests/behat/rename_roles.feature | 4 +- course/tests/behat/role_renaming.feature | 4 +- .../behat/view_subfolders_inline.feature | 2 +- .../field/checkbox/tests/behat/field.feature | 2 +- .../field/date/tests/behat/field.feature | 4 +- .../field/text/tests/behat/field.feature | 6 +-- .../tests/behat/default_value.feature | 2 +- .../tests/behat/edit_fields_settings.feature | 6 +-- .../tests/behat/required_field.feature | 4 +- customfield/tests/behat/unique_field.feature | 12 +++--- grade/tests/behat/grade_to_pass.feature | 39 ++++++++++--------- grade/tests/behat/grade_view.feature | 4 +- group/tests/behat/group_description.feature | 4 +- .../atto/plugins/h5p/tests/behat/h5p.feature | 8 ++-- lib/editor/atto/tests/behat/autosave.feature | 18 ++++----- lib/editor/atto/tests/behat/direction.feature | 2 +- .../tests/behat/modgrade_validation.feature | 12 +++--- .../tests/behat/file_type_restriction.feature | 6 +-- .../behat/assign_activity_completion.feature | 2 +- .../tests/behat/assign_course_reset.feature | 2 +- .../tests/behat/assign_group_override.feature | 8 ++-- .../assign_no_calendar_capabilities.feature | 4 +- .../tests/behat/assign_user_override.feature | 8 ++-- .../tests/behat/group_submission.feature | 2 +- mod/assign/tests/behat/hide_grader.feature | 2 +- mod/assign/tests/behat/rescale_grades.feature | 12 +++--- .../tests/behat/set_availability.feature | 10 ++--- .../behat/display_book_description.feature | 4 +- .../behat/edit_navigation_options.feature | 4 +- mod/book/tests/behat/log_entries.feature | 2 +- .../behat/chat_activity_completion.feature | 2 +- .../tests/behat/chat_course_reset.feature | 6 +-- .../chat_no_calendar_capabilities.feature | 4 +- mod/choice/tests/behat/allow_preview.feature | 2 +- .../tests/behat/choice_availability.feature | 8 ++-- .../choice_no_calendar_capabilities.feature | 4 +- .../tests/behat/limit_responses.feature | 4 +- mod/choice/tests/behat/modify_choice.feature | 6 +-- .../tests/behat/multiple_options.feature | 4 +- mod/choice/tests/behat/my_home.feature | 2 +- mod/choice/tests/behat/publish_info.feature | 12 +++--- .../tests/behat/publish_results.feature | 10 ++--- .../behat/publish_results_anonymously.feature | 4 +- .../tests/behat/remove_choice_options.feature | 2 +- .../data_no_calendar_capabilities.feature | 4 +- mod/feedback/tests/behat/anonymous.feature | 2 +- .../feedback_no_calendar_capabilities.feature | 4 +- mod/forum/tests/behat/advanced_search.feature | 2 +- .../behat/discussion_subscriptions.feature | 4 +- .../behat/forum_activity_completion.feature | 2 +- .../tests/behat/forum_subscriptions.feature | 8 ++-- .../forum_subscriptions_availability.feature | 2 +- .../forum_subscriptions_management.feature | 2 +- mod/forum/tests/behat/grade_forum.feature | 2 +- .../tests/behat/contentbank_link.feature | 6 +-- .../behat/label_activity_completion.feature | 4 +- .../behat/all_other_answers_catch.feature | 2 +- .../completion_condition_end_reached.feature | 4 +- .../completion_condition_time_spent.feature | 4 +- .../tests/behat/date_availability.feature | 4 +- .../behat/display_lesson_description.feature | 4 +- .../behat/lesson_informations_at_end.feature | 2 +- .../tests/behat/lesson_navigation.feature | 4 +- .../lesson_no_calendar_capabilities.feature | 4 +- .../lesson_number_of_student_attempts.feature | 2 +- .../tests/behat/lesson_practice.feature | 6 +-- .../tests/behat/lesson_progress_bar.feature | 2 +- mod/lesson/tests/behat/lesson_review.feature | 2 +- .../behat/lesson_student_dashboard.feature | 4 +- .../tests/behat/link_to_gradebook.feature | 6 +-- .../tests/behat/teacher_grade_essays.feature | 2 +- .../tests/behat/wrong_answer_continue.feature | 2 +- .../quiz_no_calendar_capabilities.feature | 4 +- .../settings_form_fields_disableif.feature | 6 +-- .../resource_activity_completion.feature | 6 +-- .../tests/behat/multisco_review_mode.feature | 4 +- .../behat/scorm_activity_completion.feature | 2 +- mod/survey/tests/behat/survey_types.feature | 6 +-- .../behat/behat_workshopallocation_manual.php | 3 +- .../tests/behat/behat_mod_workshop.php | 2 +- .../tests/behat/embedded_images.feature | 4 +- .../tests/behat/file_type_restriction.feature | 2 +- .../tests/behat/submission_types.feature | 8 ++-- .../behat/workshop_late_submission.feature | 2 +- .../tests/behat/filter_log_actions.feature | 2 +- theme/boost/tests/behat/contextmenu.feature | 3 +- theme/boost/tests/behat/languagemenu.feature | 2 +- .../behat/regionmainsettingsmenu.feature | 2 +- .../behat/pageadministrationmenu.feature | 4 +- user/tests/behat/view_full_profile.feature | 2 +- .../behat/view_participants_groups.feature | 4 +- 138 files changed, 314 insertions(+), 313 deletions(-) diff --git a/admin/tool/behat/tests/behat/data_generators.feature b/admin/tool/behat/tests/behat/data_generators.feature index 9423a39d6d6..b2d1bbff7eb 100644 --- a/admin/tool/behat/tests/behat/data_generators.feature +++ b/admin/tool/behat/tests/behat/data_generators.feature @@ -223,7 +223,7 @@ Feature: Set up contextual data for tests And I should see "Test assignment description" And I am on "Course 1" course homepage And I follow "Test assignment name with scale" - And I follow "Edit settings" + And I follow "Settings" And the field "Type" matches value "Scale" @javascript diff --git a/admin/tool/behat/tests/behat/edit_permissions.feature b/admin/tool/behat/tests/behat/edit_permissions.feature index 34c3997c98f..d54a19513ea 100644 --- a/admin/tool/behat/tests/behat/edit_permissions.feature +++ b/admin/tool/behat/tests/behat/edit_permissions.feature @@ -72,7 +72,7 @@ Feature: Edit capabilities @javascript Scenario: Edit permissions escapes role names correctly When I am on the "C1" "Course" page logged in as "admin" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Your word for 'Teacher' | Teacher >= editing | | Your word for 'Non-editing teacher' | Teacher < "editing" | diff --git a/admin/tool/behat/tests/behat/get_and_set_fields.feature b/admin/tool/behat/tests/behat/get_and_set_fields.feature index 83cb7504dd1..784470facf2 100644 --- a/admin/tool/behat/tests/behat/get_and_set_fields.feature +++ b/admin/tool/behat/tests/behat/get_and_set_fields.feature @@ -56,13 +56,13 @@ Feature: Verify that all form fields values can be get and set And I press "Save" Then I should see "Student page contents" in the "region-main" "region" # Select (multi-select) - Checking "I set the field". - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets # Checkbox - Checking "I set the field" and "The field matches value" ticked. And I set the field "Force format" to "1" And I press "Save and return to course" And I am on the "Test this one" "wiki activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "Force format" matches value "1" And the field "Force format" does not match value "" @@ -70,7 +70,7 @@ Feature: Verify that all form fields values can be get and set And I set the field "Force format" to "" And I press "Save and return to course" And I am on the "Test this one" "wiki activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "Force format" matches value "" And the field "Force format" does not match value "1" @@ -79,7 +79,7 @@ Feature: Verify that all form fields values can be get and set | Force format | 1 | And I press "Save and return to course" And I am on the "Test this one" "wiki activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the following fields match these values: | Force format | 1 | @@ -90,7 +90,7 @@ Feature: Verify that all form fields values can be get and set | Force format | | And I press "Save and return to course" And I am on the "Test this one" "wiki activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the following fields match these values: | Force format | | @@ -102,7 +102,7 @@ Feature: Verify that all form fields values can be get and set # Select (simple) - Checking "I set the field". And I set the field "Group mode" to "Separate groups" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Default format | NWiki | | Group mode | Separate groups | @@ -135,12 +135,12 @@ Feature: Verify that all form fields values can be get and set And the field "two" matches value "" # Check if field xpath set/match works. And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field with xpath "//input[@id='id_idnumber']" to "Course id number" And the field with xpath "//input[@name='idnumber']" matches value "Course id number" And the field with xpath "//input[@name='idnumber']" does not match value "" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the field "Course ID number" matches value "Course id number" Scenario: with JS disabled all form fields getters and setters works as expected @@ -171,7 +171,7 @@ Feature: Verify that all form fields values can be get and set And the "available[day]" "field" should be enabled And the field "deadline[enabled]" matches value "1" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the field "available[enabled]" matches value "1" And the "available[day]" "field" should be enabled And the field "deadline[enabled]" matches value "1" diff --git a/admin/tool/behat/tests/behat/get_and_set_fields_in_containers.feature b/admin/tool/behat/tests/behat/get_and_set_fields_in_containers.feature index cbc84c36a6b..86d37a1f0ba 100644 --- a/admin/tool/behat/tests/behat/get_and_set_fields_in_containers.feature +++ b/admin/tool/behat/tests/behat/get_and_set_fields_in_containers.feature @@ -12,7 +12,7 @@ Feature: Behat steps for interacting with form work When I log in as "admin" And I am on "Course 1" course homepage # Just get to any form. - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course full name" in the "General" "fieldset" to "Frog" And I set the following fields in the "Appearance" "fieldset" to these values: | Show activity reports | Yes | diff --git a/availability/condition/completion/tests/behat/conditional_bug.feature b/availability/condition/completion/tests/behat/conditional_bug.feature index ac524dcfcd8..3867620e038 100644 --- a/availability/condition/completion/tests/behat/conditional_bug.feature +++ b/availability/condition/completion/tests/behat/conditional_bug.feature @@ -20,7 +20,7 @@ Feature: Confirm that conditions on completion no longer cause a bug # Set up course. Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Enable completion tracking" to "Yes" And I press "Save and display" diff --git a/availability/tests/behat/edit_availability.feature b/availability/tests/behat/edit_availability.feature index a22b3d81aee..7ae4b195bcb 100644 --- a/availability/tests/behat/edit_availability.feature +++ b/availability/tests/behat/edit_availability.feature @@ -41,7 +41,7 @@ Feature: edit_availability | intro | pageintro | And I am on "Course 1" course homepage with editing mode on And I follow "Page1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then "Restrict access" "fieldset" should not exist Given I am on "Course 1" course homepage @@ -60,7 +60,7 @@ Feature: edit_availability | intro | pageintro | And I am on "Course 1" course homepage And I follow "Page2" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then "Restrict access" "fieldset" should exist Given I am on "Course 1" course homepage @@ -220,7 +220,7 @@ Feature: edit_availability # Check the button still works after saving and editing. And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the "Add group/grouping access restriction" "button" should be disabled And I should see "Grouping" in the "Restrict access" "fieldset" diff --git a/backup/util/ui/tests/behat/restore_moodle2_courses.feature b/backup/util/ui/tests/behat/restore_moodle2_courses.feature index ce687a7e996..fdb6c236b99 100644 --- a/backup/util/ui/tests/behat/restore_moodle2_courses.feature +++ b/backup/util/ui/tests/behat/restore_moodle2_courses.feature @@ -42,7 +42,7 @@ Feature: Restore Moodle 2 course backups And I should see "Test forum name" And I should see "Topic 15" And I should not see "Topic 16" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Topics format" And I press "Cancel" @@ -82,7 +82,7 @@ Feature: Restore Moodle 2 course backups When I restore "test_backup.mbz" backup into a new course using this options: Then I should see "Topic 1" And I should see "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Topics format" And I set the following fields to these values: @@ -94,14 +94,14 @@ Feature: Restore Moodle 2 course backups And I press "Save and display" And I should see "1 January - 7 January" And I should see "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Weekly format" And I set the following fields to these values: | id_format | Social format | And I press "Save and display" And I should see "An open forum for chatting about anything you want to" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Social format" And I press "Cancel" @@ -118,7 +118,7 @@ Feature: Restore Moodle 2 course backups | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: | Schema | Overwrite course configuration | Yes | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course layout" matches value "Show one section per page" @@ -144,7 +144,7 @@ Feature: Restore Moodle 2 course backups | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: | Schema | Overwrite course configuration | No | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C2" @@ -173,7 +173,7 @@ Feature: Restore Moodle 2 course backups And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | Yes | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course layout" matches value "Show one section per page" @@ -202,7 +202,7 @@ Feature: Restore Moodle 2 course backups And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | No | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C2" @@ -231,7 +231,7 @@ Feature: Restore Moodle 2 course backups And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | No | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C4" diff --git a/badges/tests/behat/award_badge.feature b/badges/tests/behat/award_badge.feature index b25de058730..9d5c590f713 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -214,7 +214,7 @@ Feature: Award badges | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" @@ -261,7 +261,7 @@ Feature: Award badges | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/badges/tests/behat/award_badge_groups.feature b/badges/tests/behat/award_badge_groups.feature index 2596b26dd4c..a8db60274f7 100644 --- a/badges/tests/behat/award_badge_groups.feature +++ b/badges/tests/behat/award_badge_groups.feature @@ -32,7 +32,7 @@ Feature: Award badges with separate groups | teacher2 | CA | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Group mode" to "Separate groups" And I press "Save and display" diff --git a/blocks/activity_results/tests/behat/addunsupportedactivity.feature b/blocks/activity_results/tests/behat/addunsupportedactivity.feature index 4f9b286703a..739bb6ff5cc 100644 --- a/blocks/activity_results/tests/behat/addunsupportedactivity.feature +++ b/blocks/activity_results/tests/behat/addunsupportedactivity.feature @@ -31,7 +31,7 @@ Feature: The activity results block doesn't display student scores for unsupport | id_config_nameformat | Display full names | And I press "Save changes" When I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_grade_modgrade_type | None | And I press "Save and return to course" diff --git a/blocks/activity_results/tests/behat/highscoreswithscales.feature b/blocks/activity_results/tests/behat/highscoreswithscales.feature index d560b0238e0..48d58d62496 100644 --- a/blocks/activity_results/tests/behat/highscoreswithscales.feature +++ b/blocks/activity_results/tests/behat/highscoreswithscales.feature @@ -41,7 +41,7 @@ Feature: The activity results block displays students high scores in group as sc And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_grade_modgrade_type | Scale | | id_grade_modgrade_scale | My Scale | diff --git a/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature b/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature index aa6a98e2472..3f221f1089f 100644 --- a/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature @@ -54,7 +54,7 @@ Feature: The activity results block displays student in group high scores as sca And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | assignsubmission_file_enabled | 0 | | id_grade_modgrade_type | Scale | diff --git a/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature b/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature index b7f5e965703..48d035ca2dd 100644 --- a/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature @@ -47,7 +47,7 @@ Feature: The activity results block displays student in visible groups scores And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Visible groups | And I press "Save and return to course" diff --git a/blocks/activity_results/tests/behat/lowscoreswithscales.feature b/blocks/activity_results/tests/behat/lowscoreswithscales.feature index 66ba066c72e..59b3623cc79 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithscales.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithscales.feature @@ -42,7 +42,7 @@ Feature: The activity results block displays student low scores as scales And I press "Save changes" And I am on "Course 1" course homepage with editing mode on And I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_grade_modgrade_type | Scale | | id_grade_modgrade_scale | My Scale | diff --git a/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature b/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature index 47f55beb4fd..ee08e782767 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature @@ -59,7 +59,7 @@ Feature: The activity results block displays students in groups low scores as sc And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_grade_modgrade_type | Scale | | id_grade_modgrade_scale | My Scale | diff --git a/blocks/calendar_month/tests/behat/block_calendar_month.feature b/blocks/calendar_month/tests/behat/block_calendar_month.feature index d97b494dd5a..eba60393387 100644 --- a/blocks/calendar_month/tests/behat/block_calendar_month.feature +++ b/blocks/calendar_month/tests/behat/block_calendar_month.feature @@ -123,7 +123,7 @@ Feature: Enable the calendar block in a course and test it's functionality | student2 | G2 | When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_groupmode | Separate groups | | id_groupmodeforce | Yes | @@ -159,7 +159,7 @@ Feature: Enable the calendar block in a course and test it's functionality | student2 | G2 | When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_groupmode | Separate groups | | id_groupmodeforce | Yes | diff --git a/blocks/completionstatus/tests/behat/block_completionstatus.feature b/blocks/completionstatus/tests/behat/block_completionstatus.feature index 318be30b9ee..d81a99cbb0b 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus.feature @@ -20,7 +20,7 @@ Feature: Enable Block Completion in a course Scenario: Add the block to a the course where completion is disabled Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | No | And I press "Save and display" @@ -40,7 +40,7 @@ Feature: Enable Block Completion in a course And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test page name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | Require view | 1 | diff --git a/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature b/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature index 018472c8afb..7697f77cd7f 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature @@ -24,7 +24,7 @@ Feature: Enable Block Completion in a course using activity completion Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test page name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | Require view | 1 | @@ -45,7 +45,7 @@ Feature: Enable Block Completion in a course using activity completion Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test page name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | Require view | 1 | diff --git a/blocks/glossary_random/tests/behat/glossary_random_global.feature b/blocks/glossary_random/tests/behat/glossary_random_global.feature index e422d3816dd..85d82226db7 100644 --- a/blocks/glossary_random/tests/behat/glossary_random_global.feature +++ b/blocks/glossary_random/tests/behat/glossary_random_global.feature @@ -72,7 +72,7 @@ Feature: Random glossary entry block linking to global glossary And I log in as "admin" And I am on "Course 2" course homepage And I follow "Tips and Tricks" - And I follow "Edit settings" + And I follow "Settings" And I set the field "globalglossary" to "0" And I press "Save and return to course" And I am on "Course 1" course homepage diff --git a/blocks/myoverview/tests/behat/block_myoverview_progress.feature b/blocks/myoverview/tests/behat/block_myoverview_progress.feature index 00602ab7f48..30f133477d1 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_progress.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_progress.feature @@ -28,7 +28,7 @@ Feature: Course overview block show users their progress on courses Scenario: User complete activity and verify his progress Given I am on the "Test choice 1" "choice activity" page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | id_completionview | 1 | diff --git a/blocks/news_items/tests/behat/display_news.feature b/blocks/news_items/tests/behat/display_news.feature index dfc75eeadc8..be5e1b011df 100644 --- a/blocks/news_items/tests/behat/display_news.feature +++ b/blocks/news_items/tests/behat/display_news.feature @@ -33,14 +33,14 @@ Feature: Latest announcements block displays the course latest news Then I should see "Discussion One" in the "Latest announcements" "block" And I should see "Discussion Two" in the "Latest announcements" "block" And I should see "Discussion Three" in the "Latest announcements" "block" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Number of announcements | 2 | And I press "Save and display" And I should not see "Discussion One" in the "Latest announcements" "block" And I should see "Discussion Two" in the "Latest announcements" "block" And I should see "Discussion Three" in the "Latest announcements" "block" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Number of announcements | 0 | And I press "Save and display" diff --git a/blocks/recent_activity/tests/behat/structural_changes.feature b/blocks/recent_activity/tests/behat/structural_changes.feature index ea4cba18306..d0e2feb8571 100644 --- a/blocks/recent_activity/tests/behat/structural_changes.feature +++ b/blocks/recent_activity/tests/behat/structural_changes.feature @@ -60,25 +60,25 @@ Feature: View structural changes in recent activity block And I am on "Course 1" course homepage And I click on "ForumVisibleGroupsG1" "link" - And I click on "Edit settings" "link" + And I click on "Settings" "link" And I set the following fields to these values: | Access restrictions | Grouping: Grouping 1 | And I press "Save and return to course" And I click on "ForumSeparateGroupsG1" "link" - And I click on "Edit settings" "link" + And I click on "Settings" "link" And I set the following fields to these values: | Access restrictions | Grouping: Grouping 1 | And I press "Save and return to course" And I click on "ForumVisibleGroupsG2" "link" - And I click on "Edit settings" "link" + And I click on "Settings" "link" And I set the following fields to these values: | Access restrictions | Grouping: Grouping 2 | And I press "Save and return to course" And I click on "ForumSeparateGroupsG2" "link" - And I click on "Edit settings" "link" + And I click on "Settings" "link" And I set the following fields to these values: | Access restrictions | Grouping: Grouping 2 | And I press "Save and return to course" @@ -170,7 +170,7 @@ Feature: View structural changes in recent activity block And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "ForumNew" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | name | ForumUpdated | And I press "Save and return to course" diff --git a/blocks/search_forums/tests/behat/block_search_forums_course.feature b/blocks/search_forums/tests/behat/block_search_forums_course.feature index 9444846f6fa..8ad1d9fcd71 100644 --- a/blocks/search_forums/tests/behat/block_search_forums_course.feature +++ b/blocks/search_forums/tests/behat/block_search_forums_course.feature @@ -18,7 +18,7 @@ Feature: The search forums block allows users to search for forum posts on cours | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "id_newsitems" to "1" And I press "Save and display" And I turn editing mode on @@ -41,7 +41,7 @@ Feature: The search forums block allows users to search for forum posts on cours | Message | My message | And I am on "Course 1" course homepage with editing mode on And I follow "Announcements" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "id_visible" to "0" And I press "Save and return to course" diff --git a/blocks/tests/behat/manage_blocks.feature b/blocks/tests/behat/manage_blocks.feature index 90880a3586f..7af0a432a13 100644 --- a/blocks/tests/behat/manage_blocks.feature +++ b/blocks/tests/behat/manage_blocks.feature @@ -21,7 +21,7 @@ Feature: Block appearances And I log in as "admin" And I am on "Course 1" course homepage And I follow "Test survey name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Survey type | ATTLS (20 item version) | And I press "Save and return to course" diff --git a/completion/tests/behat/activity_completion_criteria.feature b/completion/tests/behat/activity_completion_criteria.feature index 3c8383f4acd..09f59fe42b2 100644 --- a/completion/tests/behat/activity_completion_criteria.feature +++ b/completion/tests/behat/activity_completion_criteria.feature @@ -25,7 +25,7 @@ Feature: Allow to mark course as completed without cron for activity completion | description | Test assignment description | And I log in as "admin" And I am on "Completion course" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Enable completion tracking" to "Yes" And I click on "Save and display" "button" diff --git a/completion/tests/behat/behat_completion.php b/completion/tests/behat/behat_completion.php index 4d78021b8d8..ba99eed53a4 100644 --- a/completion/tests/behat/behat_completion.php +++ b/completion/tests/behat/behat_completion.php @@ -101,7 +101,7 @@ class behat_completion extends behat_base { $toggle = strtolower($completionstatus) == 'enabled' ? get_string('yes') : get_string('no'); // Go to course editing. - $this->execute("behat_general::click_link", get_string('editsettings')); + $this->execute("behat_general::click_link", get_string('settings')); // Expand all the form fields. $this->execute("behat_forms::i_expand_all_fieldsets"); diff --git a/completion/tests/behat/bulk_edit_activity_completion.feature b/completion/tests/behat/bulk_edit_activity_completion.feature index 4d72d35b169..371998c0780 100644 --- a/completion/tests/behat/bulk_edit_activity_completion.feature +++ b/completion/tests/behat/bulk_edit_activity_completion.feature @@ -28,7 +28,7 @@ Feature: Allow teachers to bulk edit activity completion rules in a course. | assign | C1 | a4 | Test assignment four | Submit nothing! | 150 | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/completion/tests/behat/completion_course_page_display.feature b/completion/tests/behat/completion_course_page_display.feature index 1a45384cc7a..cf68afe9388 100644 --- a/completion/tests/behat/completion_course_page_display.feature +++ b/completion/tests/behat/completion_course_page_display.feature @@ -20,7 +20,7 @@ Feature: Show activity completion status or activity completion configuration on | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/completion/tests/behat/completion_no_calendar_capabilities.feature b/completion/tests/behat/completion_no_calendar_capabilities.feature index f9f73e64d85..6f990d47642 100644 --- a/completion/tests/behat/completion_no_calendar_capabilities.feature +++ b/completion/tests/behat/completion_no_calendar_capabilities.feature @@ -25,7 +25,7 @@ Feature: Completion with no calendar capabilites And I log in as "admin" And I am on "Course 1" course homepage And I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_completionexpected_enabled | 1 | | id_completionexpected_day | 1 | @@ -43,7 +43,7 @@ Feature: Completion with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_completionexpected_year | 2018 | And I press "Save and return to course" diff --git a/completion/tests/behat/custom_completion_display_conditions.feature b/completion/tests/behat/custom_completion_display_conditions.feature index bc959928b2c..73c484ed2ad 100644 --- a/completion/tests/behat/custom_completion_display_conditions.feature +++ b/completion/tests/behat/custom_completion_display_conditions.feature @@ -35,7 +35,7 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou Scenario: Completion condition displaying setting can be disabled at course level Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I set the following fields to these values: | Show activity completion conditions | No | And I click on "Save and display" "button" @@ -70,10 +70,10 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou And I set the field "Show activity completion conditions" to "" And I press "Save changes" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Enable completion tracking" to "No" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then the field "Show activity completion conditions" matches value "" Examples: diff --git a/completion/tests/behat/default_activity_completion.feature b/completion/tests/behat/default_activity_completion.feature index cc322753ef0..26fa3b08dba 100644 --- a/completion/tests/behat/default_activity_completion.feature +++ b/completion/tests/behat/default_activity_completion.feature @@ -25,7 +25,7 @@ Feature: Allow teachers to edit the default activity completion rules in a cours | assign | C1 | a1 | Test assignment one | Submit something! | 300 | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/completion/tests/behat/enable_manual_complete_mark.feature b/completion/tests/behat/enable_manual_complete_mark.feature index 83f8df5d71e..b86b01e5bed 100644 --- a/completion/tests/behat/enable_manual_complete_mark.feature +++ b/completion/tests/behat/enable_manual_complete_mark.feature @@ -19,7 +19,7 @@ Feature: Allow students to manually mark an activity as complete | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/completion/tests/behat/restrict_section_availability.feature b/completion/tests/behat/restrict_section_availability.feature index 9a525b982e8..f4d71100155 100644 --- a/completion/tests/behat/restrict_section_availability.feature +++ b/completion/tests/behat/restrict_section_availability.feature @@ -21,7 +21,7 @@ Feature: Restrict sections availability through completion or grade conditions Scenario: Show section greyed-out to student when completion condition is not satisfied Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/course/format/singleactivity/tests/behat/edit_format_course.feature b/course/format/singleactivity/tests/behat/edit_format_course.feature index 15e206f9ff5..15935c9db2f 100644 --- a/course/format/singleactivity/tests/behat/edit_format_course.feature +++ b/course/format/singleactivity/tests/behat/edit_format_course.feature @@ -16,7 +16,7 @@ Feature: Edit format course to Single Activity format | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Course full name | My first course | | Course short name | myfirstcourse | diff --git a/course/format/social/tests/behat/social_adjust_discussion_count.feature b/course/format/social/tests/behat/social_adjust_discussion_count.feature index 830ad4ecd2d..fe0ccd160fa 100644 --- a/course/format/social/tests/behat/social_adjust_discussion_count.feature +++ b/course/format/social/tests/behat/social_adjust_discussion_count.feature @@ -97,7 +97,7 @@ Feature: Change number of discussions displayed And I am on "Course 1" course homepage Scenario: When number of discussions is decreased fewer discussions appear - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I set the following fields to these values: | numdiscussions | 5 | When I press "Save and display" @@ -106,7 +106,7 @@ Feature: Change number of discussions displayed And I should not see "This is forum post six" Scenario: When number of discussions is decreased to less than 1 only 1 discussion should appear - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I set the following fields to these values: | numdiscussions | -1 | When I press "Save and display" @@ -115,7 +115,7 @@ Feature: Change number of discussions displayed And I should not see "This is forum post ten" Scenario: When number of discussions is increased more discussions appear - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I set the following fields to these values: | numdiscussions | 9 | When I press "Save and display" diff --git a/course/tests/behat/activities_edit_completion.feature b/course/tests/behat/activities_edit_completion.feature index d190a4db554..c601abf9768 100644 --- a/course/tests/behat/activities_edit_completion.feature +++ b/course/tests/behat/activities_edit_completion.feature @@ -33,7 +33,7 @@ Feature: Edit completion settings of an activity Then I should see "Completion options unlocked" And I set the field "Completion tracking" to "Students can manually mark the activity as completed" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "Completion tracking" matches value "Students can manually mark the activity as completed" @@ -45,6 +45,6 @@ Feature: Edit completion settings of an activity When I click on "id_completionexpected_enabled" "checkbox" And I set the field "id_completionexpected_year" to "2013" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the field "id_completionexpected_year" matches value "2013" diff --git a/course/tests/behat/activities_group_icons.feature b/course/tests/behat/activities_group_icons.feature index a863ff0c9e3..53a165cd049 100644 --- a/course/tests/behat/activities_group_icons.feature +++ b/course/tests/behat/activities_group_icons.feature @@ -20,7 +20,7 @@ Feature: Toggle activities groups mode from the course page And I add a "Forum" to section "1" and I fill the form with: | Forum name | Test forum name | | Description | Test forum description | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | No groups | | Force group mode | No | diff --git a/course/tests/behat/course_activity_dates.feature b/course/tests/behat/course_activity_dates.feature index 96408672d34..27ad89eaa52 100644 --- a/course/tests/behat/course_activity_dates.feature +++ b/course/tests/behat/course_activity_dates.feature @@ -21,7 +21,7 @@ Feature: Allow teachers to edit the visibility of activity dates in a course Scenario: Activity dates setting can be enabled to display activity dates in a course Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I set the following fields to these values: | Show activity dates | Yes | And I click on "Save and display" "button" @@ -38,7 +38,7 @@ Feature: Allow teachers to edit the visibility of activity dates in a course Scenario: Activity dates setting can be disabled to hide activity dates in a course Given I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I set the following fields to these values: | Show activity dates | No | And I click on "Save and display" "button" diff --git a/course/tests/behat/course_download_content_permissions.feature b/course/tests/behat/course_download_content_permissions.feature index 7ec66482833..21edbd45663 100644 --- a/course/tests/behat/course_download_content_permissions.feature +++ b/course/tests/behat/course_download_content_permissions.feature @@ -24,7 +24,7 @@ Feature: Access to downloading course content can be controlled Scenario: Site admins can remove the download course content feature Given I log in as "admin" And I am on "Hockey 101" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Enable download course content" to "Yes" And I press "Save and display" And "Download course content" "link" should exist in current page administration @@ -32,7 +32,7 @@ Feature: Access to downloading course content can be controlled | downloadcoursecontentallowed | 0 | And I am on "Hockey 101" course homepage Then "Download course content" "link" should not exist in current page administration - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I should not see "Enable download course content" Scenario: Site admins can set the default value for whether download course content is enabled in courses @@ -49,12 +49,12 @@ Feature: Access to downloading course content can be controlled Given I log in as "teacher1" When I am on "Hockey 101" course homepage And "Download course content" "link" should not exist in current page administration - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I should see "Enable download course content" And I set the field "Enable download course content" to "Yes" And I press "Save and display" Then "Download course content" "link" should exist in current page administration - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Enable download course content" to "No" And I press "Save and display" And "Download course content" "link" should not exist in current page administration @@ -69,7 +69,7 @@ Feature: Access to downloading course content can be controlled And I log in as "teacher1" And I am on "Hockey 101" course homepage And "Download course content" "link" should exist in current page administration - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And "Enable download course content" "select" should exist And I log out # Remove teacher's capabilities for download course content. @@ -83,7 +83,7 @@ Feature: Access to downloading course content can be controlled When I log in as "teacher1" And I am on "Hockey 101" course homepage Then "Download course content" "link" should not exist in current page administration - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I should see "Enable download course content" And I should see "Site default (Yes)" And "Enable download course content" "select" should not exist @@ -91,7 +91,7 @@ Feature: Access to downloading course content can be controlled Scenario: Students require a capability to access the download course content feature in a course Given I log in as "teacher1" And I am on "Hockey 101" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Enable download course content" to "Yes" And I press "Save and display" And I log out diff --git a/course/tests/behat/course_relativedatesmode.feature b/course/tests/behat/course_relativedatesmode.feature index ed8cda6e312..0c1212c171d 100644 --- a/course/tests/behat/course_relativedatesmode.feature +++ b/course/tests/behat/course_relativedatesmode.feature @@ -40,10 +40,10 @@ Feature: Courses can be set up to display dates relative to the user's enrolment | Course short name | C2 | | Relative dates mode | No | And I am on "Course 1" course homepage - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration Then the "Relative dates mode" "select" should be disabled And the field "Relative dates mode" matches value "Yes" And I am on "Course 2" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the "Relative dates mode" "select" should be disabled And the field "Relative dates mode" matches value "No" diff --git a/course/tests/behat/coursetags.feature b/course/tests/behat/coursetags.feature index 35068933a37..73d3ec57860 100644 --- a/course/tests/behat/coursetags.feature +++ b/course/tests/behat/coursetags.feature @@ -25,7 +25,7 @@ Feature: Tagging courses | teacher2 | c2 | teacher | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Tags | Mathematics | And I press "Save and display" @@ -34,14 +34,14 @@ Feature: Tagging courses Scenario: Set course tags using the course edit form When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then "Mathematics" "autocomplete_suggestions" should exist And I set the following fields to these values: | Tags | Mathematics, Algebra | And I press "Save and display" And I am on "Course 2" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Tags | Mathematics, Geometry | And I press "Save and display" diff --git a/course/tests/behat/customfields_locked.feature b/course/tests/behat/customfields_locked.feature index 9a06bd1cf4d..a6bd4757cf1 100644 --- a/course/tests/behat/customfields_locked.feature +++ b/course/tests/behat/customfields_locked.feature @@ -37,7 +37,7 @@ Feature: Fields locked control who is able to edit it | Locked | Yes | And I click on "Save changes" "button" in the "Adding a new Short text" "dialogue" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field1 | testcontent1 | | Test field2 | testcontent2 | @@ -48,7 +48,7 @@ Feature: Fields locked control who is able to edit it And I log out And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "Test field1" matches value "testcontent1" And I should not see "Test field2" diff --git a/course/tests/behat/customfields_visibility.feature b/course/tests/behat/customfields_visibility.feature index d4b6d082664..3181c047271 100644 --- a/course/tests/behat/customfields_visibility.feature +++ b/course/tests/behat/customfields_visibility.feature @@ -32,7 +32,7 @@ Feature: The visibility of fields control where they are displayed And I log out Then I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" @@ -52,7 +52,7 @@ Feature: The visibility of fields control where they are displayed And I log out When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" @@ -72,7 +72,7 @@ Feature: The visibility of fields control where they are displayed And I log out When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" diff --git a/course/tests/behat/edit_settings.feature b/course/tests/behat/edit_settings.feature index 59c801af74e..d6afba611fd 100644 --- a/course/tests/behat/edit_settings.feature +++ b/course/tests/behat/edit_settings.feature @@ -17,7 +17,7 @@ Feature: Edit course settings | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Course full name | Edited course fullname | | Course short name | Edited course shortname | @@ -27,7 +27,7 @@ Feature: Edit course settings And I should not see "C1" And I should see "Edited course fullname" And I should see "Edited course shortname" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the field "Course full name" matches value "Edited course fullname" And the field "Course short name" matches value "Edited course shortname" And the field "Course summary" matches value "Edited course summary" diff --git a/course/tests/behat/force_group_mode.feature b/course/tests/behat/force_group_mode.feature index 1230ae95a6d..020da51194f 100644 --- a/course/tests/behat/force_group_mode.feature +++ b/course/tests/behat/force_group_mode.feature @@ -19,7 +19,7 @@ Feature: Force group mode in a course And I add a "Chat" to section "1" and I fill the form with: | Name of this chat room | Chat room | | Description | Chat description | - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration @javascript Scenario: Forced group mode using separate groups diff --git a/course/tests/behat/move_activities.feature b/course/tests/behat/move_activities.feature index ebdc29a1ffd..1be73ff8c90 100644 --- a/course/tests/behat/move_activities.feature +++ b/course/tests/behat/move_activities.feature @@ -33,7 +33,7 @@ Feature: Activities can be moved between sections And I should not see "Test forum name" in the "Topic 1" "section" Scenario: Move activities in the course home with Javascript disabled using paged mode - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I set the following fields to these values: | Course layout | Show one section per page | And I press "Save and display" @@ -42,7 +42,7 @@ Feature: Activities can be moved between sections And I should not see "Test forum name" in the "Topic 1" "section" Scenario: Move activities in a course section with Javascript disabled using paged mode - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And the following "activity" exists: | activity | forum | | course | C1 | diff --git a/course/tests/behat/move_sections.feature b/course/tests/behat/move_sections.feature index b4b379f6936..3e9780ad5e0 100644 --- a/course/tests/behat/move_sections.feature +++ b/course/tests/behat/move_sections.feature @@ -31,7 +31,7 @@ Feature: Sections can be moved | activity | name | intro | course | idnumber | section | | forum | Test forum name | Test forum name description | C1 | forum1 | 1 | And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Course layout | Show one section per page | And I press "Save and display" @@ -45,7 +45,7 @@ Feature: Sections can be moved | activity | name | intro | course | idnumber | section | | forum | Test forum name | Test forum name description | C1 | forum1 | 2 | And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Course layout | Show one section per page | And I press "Save and display" diff --git a/course/tests/behat/rename_roles.feature b/course/tests/behat/rename_roles.feature index 00f7c811ed3..756ae38b4ae 100644 --- a/course/tests/behat/rename_roles.feature +++ b/course/tests/behat/rename_roles.feature @@ -21,7 +21,7 @@ Feature: Rename roles within a course | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Your word for 'Non-editing teacher' | Tutor | | Your word for 'Student' | Learner | @@ -44,7 +44,7 @@ Feature: Rename roles within a course And the "Assign role" select box should contain "Learner (Student)" And I click on "Cancel" "button" in the "Enrol users" "dialogue" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Your word for 'Non-editing teacher' | | | Your word for 'Student' | | diff --git a/course/tests/behat/role_renaming.feature b/course/tests/behat/role_renaming.feature index b3aac3dae3e..b650a347d84 100644 --- a/course/tests/behat/role_renaming.feature +++ b/course/tests/behat/role_renaming.feature @@ -20,7 +20,7 @@ Feature: Rename roles in a course Scenario: Teacher can rename roles Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I should see "Role renaming" When I set the following fields to these values: | Your word for 'Teacher' | Lecturer | @@ -46,6 +46,6 @@ Feature: Rename roles in a course And I follow "Log out" When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then I should not see "Role renaming" And I should not see "Your word for 'Teacher'" diff --git a/course/tests/behat/view_subfolders_inline.feature b/course/tests/behat/view_subfolders_inline.feature index edd547cdb59..9e403861a29 100644 --- a/course/tests/behat/view_subfolders_inline.feature +++ b/course/tests/behat/view_subfolders_inline.feature @@ -57,7 +57,7 @@ Feature: View subfolders in a course in-line And I set the field "New folder name" to "Test sub subfolder" And I click on "button.fp-dlg-butcreate" "css_element" in the "div.fp-mkdir-dlg" "css_element" And I press "Save changes" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I set the field "Display folder contents" to "Inline on a course page" And I press "Save and return to course" Then I should see "Test subfolder 1" diff --git a/customfield/field/checkbox/tests/behat/field.feature b/customfield/field/checkbox/tests/behat/field.feature index 1a99de6b32f..66705f98675 100644 --- a/customfield/field/checkbox/tests/behat/field.feature +++ b/customfield/field/checkbox/tests/behat/field.feature @@ -69,7 +69,7 @@ Feature: Managers can manage course custom fields checkbox And I am on site homepage Then I should see "Test field: Yes" When I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Test field" to "" And I press "Save and display" diff --git a/customfield/field/date/tests/behat/field.feature b/customfield/field/date/tests/behat/field.feature index 822deb286bd..f4b208e37e8 100644 --- a/customfield/field/date/tests/behat/field.feature +++ b/customfield/field/date/tests/behat/field.feature @@ -68,7 +68,7 @@ Feature: Managers can manage course custom fields date Then I log in as "teacher1" When I am on site homepage When I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then "#id_customfield_testfield_hour" "css_element" should be visible Then "#id_customfield_testfield_minute" "css_element" should be visible @@ -95,7 +95,7 @@ Feature: Managers can manage course custom fields date Then I log in as "teacher1" When I am on site homepage When I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then "#id_customfield_testfield_hour" "css_element" should not be visible Then "#id_customfield_testfield_minute" "css_element" should not be visible diff --git a/customfield/field/text/tests/behat/field.feature b/customfield/field/text/tests/behat/field.feature index 5939cf0986e..3e27af5694b 100644 --- a/customfield/field/text/tests/behat/field.feature +++ b/customfield/field/text/tests/behat/field.feature @@ -73,7 +73,7 @@ Feature: Managers can manage course custom fields text And I log out Then I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | See more on website | course/view.php?id=35 | And I press "Save and display" @@ -102,7 +102,7 @@ Feature: Managers can manage course custom fields text And I log out Then I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | 1234 | And I press "Save and display" @@ -131,7 +131,7 @@ Feature: Managers can manage course custom fields text When I am on site homepage Then I should see "Test field: testdefault" When I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then the "value" attribute of "#id_customfield_testfield" "css_element" should contain "testdefault" When I set the following fields to these values: | Test field | | diff --git a/customfield/field/textarea/tests/behat/default_value.feature b/customfield/field/textarea/tests/behat/default_value.feature index 42bea1acef2..48389c120bb 100644 --- a/customfield/field/textarea/tests/behat/default_value.feature +++ b/customfield/field/textarea/tests/behat/default_value.feature @@ -53,7 +53,7 @@ Feature: Default value for the textarea custom field can contain images # Teacher will see the image when editing existing course. And I log in as "teacher" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then "//img[contains(@src, 'draftfile.php') and contains(@src, '/gd-logo.png') and @alt='Example']" "xpath_element" should exist in the "Test field" "form_row" # Save the course without changing the default value. diff --git a/customfield/tests/behat/edit_fields_settings.feature b/customfield/tests/behat/edit_fields_settings.feature index d101de646fa..4d472d06dab 100644 --- a/customfield/tests/behat/edit_fields_settings.feature +++ b/customfield/tests/behat/edit_fields_settings.feature @@ -28,7 +28,7 @@ Feature: Teachers can edit course custom fields Scenario: Display custom fields on course edit form When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then I should see "Category for test" And I should see "Field 1" @@ -57,7 +57,7 @@ Feature: Teachers can edit course custom fields | customfield_f4[year] | 2019 | | Field 5 | b | And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Course full name | Course 2 | | Course short name | C2 | @@ -90,7 +90,7 @@ Feature: Teachers can edit course custom fields And I log out And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets Then the image at "//div[contains(@class, 'fitem')][contains(., 'Field 1')]/following-sibling::div[1]//img[contains(@src, 'pluginfile.php') and contains(@src, '/core_customfield/description/') and @alt='Example']" "xpath_element" should be identical to "lib/tests/fixtures/gd-logo.png" And I log out diff --git a/customfield/tests/behat/required_field.feature b/customfield/tests/behat/required_field.feature index fa3f952767e..a164f1138c6 100644 --- a/customfield/tests/behat/required_field.feature +++ b/customfield/tests/behat/required_field.feature @@ -31,7 +31,7 @@ Feature: Requiredness The course custom fields can be mandatory or not And I log out And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I press "Save and display" Then I should see "You must supply a value here" And I set the field "Test field" to "some value" @@ -52,7 +52,7 @@ Feature: Requiredness The course custom fields can be mandatory or not And I log out And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I press "Save and display" Then I should see "Course 1" And I should see "Topic 1" diff --git a/customfield/tests/behat/unique_field.feature b/customfield/tests/behat/unique_field.feature index bb7e983fdf6..adb59d85859 100644 --- a/customfield/tests/behat/unique_field.feature +++ b/customfield/tests/behat/unique_field.feature @@ -33,12 +33,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not Scenario: A course custom field with unique data must not allow same data in same field in different courses When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" And I am on "Course 2" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" @@ -47,12 +47,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not Scenario: A course custom field with unique data must not compare with itself When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | testcontent | And I press "Save and display" @@ -62,12 +62,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not Scenario: A course custom field with unique data must allow empty data When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | | And I press "Save and display" And I am on "Course 2" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Test field | | And I press "Save and display" diff --git a/grade/tests/behat/grade_to_pass.feature b/grade/tests/behat/grade_to_pass.feature index abfcbda92a5..a2062f26c7c 100644 --- a/grade/tests/behat/grade_to_pass.feature +++ b/grade/tests/behat/grade_to_pass.feature @@ -51,7 +51,7 @@ Feature: We can set the grade to pass value | assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Assignment 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | assignsubmission_onlinetext_enabled | 1 | | grade[modgrade_type] | Point | @@ -64,7 +64,7 @@ Feature: We can set the grade to pass value Then the field "Grade to pass" matches value "25" And I am on "Course 1" course homepage And I follow "Test Assignment 1" - And I follow "Edit settings" + And I follow "Settings" And I expand all fieldsets And I set the field "Grade to pass" to "30" And I press "Save and return to course" @@ -78,7 +78,7 @@ Feature: We can set the grade to pass value | assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Assignment 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | grade[modgrade_type] | Scale | | grade[modgrade_scale] | Test Scale 1 | @@ -93,7 +93,7 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Assignment 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Grade to pass" matches value "4" Scenario: Set a invalid grade to pass for an assignment activity using scales @@ -102,7 +102,7 @@ Feature: We can set the grade to pass value | assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Assignment 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | grade[modgrade_type] | Scale | | grade[modgrade_scale] | Test Scale 1 | @@ -116,7 +116,7 @@ Feature: We can set the grade to pass value | workshop | Test Workshop 1 | Test workshop | C1 | 1 | workshop1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Workshop 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | grade | 80 | | Submission grade to pass | 40 | @@ -137,7 +137,7 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Workshop 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Submission grade to pass" matches value "45" And the field "Assessment grade to pass" matches value "15" @@ -147,7 +147,7 @@ Feature: We can set the grade to pass value | workshop | Test Workshop 1 | Test workshop | C1 | 1 | workshop1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Workshop 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | grade | 80 | | Submission grade to pass | 90 | @@ -163,7 +163,7 @@ Feature: We can set the grade to pass value | quiz | Test Quiz 1 | C1 | 1 | quiz1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Quiz 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Grade to pass | 9.5 | And I press "Save and return to course" @@ -176,7 +176,7 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Quiz 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Grade to pass" matches value "8.00" Scenario: Set a valid grade to pass for lesson activity @@ -185,7 +185,7 @@ Feature: We can set the grade to pass value | lesson | Test Lesson 1 | Test | C1 | 1 | lesson1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Lesson 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Grade to pass | 90 | And I press "Save and return to course" @@ -198,7 +198,7 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Lesson 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Grade to pass" matches value "80" Scenario: Set a valid grade to pass for database activity @@ -207,7 +207,7 @@ Feature: We can set the grade to pass value | data | Test Database 1 | Test | C1 | 1 | data1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Database 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Ratings > Aggregate type | Average of ratings | @@ -222,7 +222,8 @@ Feature: We can set the grade to pass value And I set the field "Grade to pass" to "80" And I press "Save changes" And I am on "Course 1" course homepage - And I click on "Edit settings" "link" in the "Test Database 1" activity + And I follow "Test Database 1" + And I follow "Settings" And the field "Grade to pass" matches value "80" Scenario: Set an invalid grade to pass for forum activity @@ -231,7 +232,7 @@ Feature: We can set the grade to pass value | forum | Test Forum 1 | Test | C1 | 1 | forum1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Forum 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Ratings > Aggregate type | Average of ratings | @@ -247,7 +248,7 @@ Feature: We can set the grade to pass value | forum | Test Forum 1 | Test | C1 | 1 | forum1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Forum 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Ratings > Aggregate type | Average of ratings | @@ -263,7 +264,7 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Forum 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Ratings > Grade to pass" matches value "80" Scenario: Set a valid grade to pass for glossary activity @@ -272,7 +273,7 @@ Feature: We can set the grade to pass value | glossary | Test Glossary 1 | Test | C1 | 1 | glossary1 | And I am on "Course 1" course homepage with editing mode on And I follow "Test Glossary 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Ratings > Aggregate type | Average of ratings | | id_scale_modgrade_type | Point | @@ -287,5 +288,5 @@ Feature: We can set the grade to pass value And I press "Save changes" And I am on "Course 1" course homepage And I follow "Test Glossary 1" - And I follow "Edit settings" + And I follow "Settings" And the field "Grade to pass" matches value "80" diff --git a/grade/tests/behat/grade_view.feature b/grade/tests/behat/grade_view.feature index 3c24b8f9afe..9f8fec284ba 100644 --- a/grade/tests/behat/grade_view.feature +++ b/grade/tests/behat/grade_view.feature @@ -28,13 +28,13 @@ Feature: We can enter in grades and view reports from the gradebook And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test assignment name 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Description | Submit your online text | | assignsubmission_onlinetext_enabled | 1 | And I press "Save and return to course" And I follow "Test assignment name 2" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Description | Submit your online text | | assignsubmission_onlinetext_enabled | 1 | diff --git a/group/tests/behat/group_description.feature b/group/tests/behat/group_description.feature index 087fecba818..c4589fda461 100644 --- a/group/tests/behat/group_description.feature +++ b/group/tests/behat/group_description.feature @@ -23,7 +23,7 @@ Feature: The description of a group can be viewed by students and teachers Scenario: A student can see the group description when visible groups are set. Teachers can see group details. Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Visible groups | And I press "Save and display" @@ -72,7 +72,7 @@ Feature: The description of a group can be viewed by students and teachers Scenario: A student can not see the group description when separate groups are set. Teachers can see group details. Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Separate groups | And I press "Save and display" diff --git a/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature b/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature index 2eaa9bfb506..886c0a4b4dc 100644 --- a/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature +++ b/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature @@ -113,7 +113,7 @@ Feature: Add h5ps to Atto Then I should not see "reveal" And I should see "Cloudberries" And I switch to the main frame - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I click on ".h5p-placeholder" "css_element" And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element" # External URL @@ -149,7 +149,7 @@ Feature: Add h5ps to Atto And I should not see "Embed" And I should not see "Rights of use" And I switch to the main frame - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I click on ".h5p-placeholder" "css_element" And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element" And I click on "H5P options" "link" @@ -165,7 +165,7 @@ Feature: Add h5ps to Atto And I should not see "Embed" And I should not see "Rights of use" And I switch to the main frame - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I click on ".h5p-placeholder" "css_element" And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element" # Embed and copyright buttons displayed. Download not displayed @@ -197,7 +197,7 @@ Feature: Add h5ps to Atto And I should see "Far far away" And I should not see "Embed" And I switch to the main frame - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I click on ".h5p-placeholder" "css_element" And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element" And I click on "H5P options" "link" diff --git a/lib/editor/atto/tests/behat/autosave.feature b/lib/editor/atto/tests/behat/autosave.feature index d66cb2fb5e2..c45a4b2f6e9 100644 --- a/lib/editor/atto/tests/behat/autosave.feature +++ b/lib/editor/atto/tests/behat/autosave.feature @@ -20,7 +20,7 @@ Feature: Atto Autosave And I set the field with xpath "//select[@name='s_editor_atto_autosavefrequency[u]']" to "seconds" And I click on "Save changes" "button" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field with xpath "//select[@name='summary_editor[format]']" to "1" And I click on "Save and display" "button" And I log out @@ -29,14 +29,14 @@ Feature: Atto Autosave Scenario: Restore a draft Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course summary" to "This is my draft" # Wait for the autosave And I wait "5" seconds And I log out When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration # Wait for the autorestore And I wait "2" seconds Then I should see "This is my draft" @@ -45,7 +45,7 @@ Feature: Atto Autosave Scenario: Do not restore a draft if files have been modified Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course summary" to "This is my draft" # Wait for the autosave And I wait "5" seconds @@ -55,7 +55,7 @@ Feature: Atto Autosave And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager And I click on "Save changes" "button" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course summary" to "

Image test

" And I select the text in the "Course summary" Atto editor And I click on "Insert or edit image" "button" @@ -71,26 +71,26 @@ Feature: Atto Autosave And I log out When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then I should not see "This is my draft" @javascript Scenario: Do not restore a draft if text has been modified Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course summary" to "This is my draft" # Wait for the autosave And I wait "5" seconds And I log out And I log in as "teacher2" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Course summary" to "Modified text" And I click on "Save and display" "button" And I log out When I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then I should not see "This is my draft" And I should see "Modified text" diff --git a/lib/editor/atto/tests/behat/direction.feature b/lib/editor/atto/tests/behat/direction.feature index 6009727498f..28f3e6e92c8 100644 --- a/lib/editor/atto/tests/behat/direction.feature +++ b/lib/editor/atto/tests/behat/direction.feature @@ -38,7 +38,7 @@ Feature: Add text direction and alignment | | | | And I log in as "admin" And I am on "Course 1" course homepage - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I press "Show more buttons" And I press "HTML" Then I should see "" diff --git a/lib/form/tests/behat/modgrade_validation.feature b/lib/form/tests/behat/modgrade_validation.feature index 7f33b5a4c59..da6412694fd 100644 --- a/lib/form/tests/behat/modgrade_validation.feature +++ b/lib/form/tests/behat/modgrade_validation.feature @@ -49,13 +49,13 @@ Feature: Using the activity grade form element And I set the field "scale[modgrade_scale]" to "ABCDEF" And I press "Save and display" And I should not see "You cannot change the type, as grades already exist for this item" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I should not see "Some grades have already been awarded, so the grade type" And I set the field "scale[modgrade_scale]" to "Letter scale" And I press "Save and display" And I should not see "You cannot change the scale, as grades already exist for this item" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I should not see "Some grades have already been awarded, so the grade type" And I set the field "scale[modgrade_type]" to "Point" @@ -100,13 +100,13 @@ Feature: Using the activity grade form element And I follow "Discussion subject" And I set the field "rating" to "D" And I am on the "Test forum name" "forum activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I expand all fieldsets Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed" # Try saving the form and visiting it back to verify that everything is working ok. And I press "Save and display" And I should not see "When selecting a ratings aggregate type you must also select" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "Aggregate type" matches value "Average of ratings" And the field "scale[modgrade_type]" matches value "Scale" @@ -144,7 +144,7 @@ Feature: Using the activity grade form element Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed" # Try saving the form and visiting it back to verify everything is working ok. And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the field "grade[modgrade_type]" matches value "Scale" And the field "grade[modgrade_scale]" matches value "ABCDEF" @@ -174,7 +174,7 @@ Feature: Using the activity grade form element And I follow "Discussion subject" And I set the field "rating" to "100" And I am on the "Test forum name" "forum activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I expand all fieldsets Then I should see "You cannot change the type, as grades already exist for this item." And the "Maximum grade" "field" should be disabled diff --git a/mod/assign/submission/file/tests/behat/file_type_restriction.feature b/mod/assign/submission/file/tests/behat/file_type_restriction.feature index 69e9f7b7ba2..e2cb42a75a6 100644 --- a/mod/assign/submission/file/tests/behat/file_type_restriction.feature +++ b/mod/assign/submission/file/tests/behat/file_type_restriction.feature @@ -25,20 +25,20 @@ Feature: In an assignment, limit submittable file types | activity | course | name | duedate | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | assignsubmission_file_maxfiles | assignsubmission_file_maxsizebytes | | assign | C1 | Test assignment name | 1388534400 | 0 | 1 | 1 | 0 | And I am on the "Test assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration When I set the field "Accepted file types" to "image/png;doesntexist;.anything;unreal/mimetype;nodot" And I press "Save and display" And I should see "Unknown file types: .doesntexist, .anything, unreal/mimetype, .nodot" And I set the field "Accepted file types" to "image/png;spreadsheet" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the field "Accepted file types" matches value "image/png,spreadsheet" And I set the field "Accepted file types" to "" And I press "Choose" And I set the field "Image files" to "1" And I press "Save changes" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration Then the field "Accepted file types" matches value "image" @javascript @_file_upload diff --git a/mod/assign/tests/behat/assign_activity_completion.feature b/mod/assign/tests/behat/assign_activity_completion.feature index a902bb030d9..d95929b15f1 100644 --- a/mod/assign/tests/behat/assign_activity_completion.feature +++ b/mod/assign/tests/behat/assign_activity_completion.feature @@ -44,7 +44,7 @@ Feature: View activity completion in the assignment activity @javascript Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No Given I am on the "Course 1" course page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Show activity completion conditions" to "No" And I press "Save and display" diff --git a/mod/assign/tests/behat/assign_course_reset.feature b/mod/assign/tests/behat/assign_course_reset.feature index f54805e23ec..02a3ae744df 100644 --- a/mod/assign/tests/behat/assign_course_reset.feature +++ b/mod/assign/tests/behat/assign_course_reset.feature @@ -108,7 +108,7 @@ Feature: Assign reset Scenario: Use course reset to reset blind marking assignment. When I am on the "Test assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | blindmarking | 1 | And I press "Save" diff --git a/mod/assign/tests/behat/assign_group_override.feature b/mod/assign/tests/behat/assign_group_override.feature index 08c40e6e578..2f0c10020a4 100644 --- a/mod/assign/tests/behat/assign_group_override.feature +++ b/mod/assign/tests/behat/assign_group_override.feature @@ -70,7 +70,7 @@ Feature: Assign group override Scenario: Allow a group to have a different due date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Allow submissions from | disabled | | Due date | ##1 Jan 2000 08:00## | @@ -92,7 +92,7 @@ Feature: Assign group override Scenario: Allow a group to have a different cut off date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Due date | disabled | | Allow submissions from | disabled | @@ -114,7 +114,7 @@ Feature: Assign group override Scenario: Allow a group to have a different start date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Due date | disabled | | Allow submissions from | ##1 January 2030 08:00## | @@ -138,7 +138,7 @@ Feature: Assign group override @javascript Scenario: Add both a user and group override and verify that both are applied correctly Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Due date | disabled | | Allow submissions from | ##1 January 2040 08:00## | diff --git a/mod/assign/tests/behat/assign_no_calendar_capabilities.feature b/mod/assign/tests/behat/assign_no_calendar_capabilities.feature index 40ba4062868..b8c119d6d41 100644 --- a/mod/assign/tests/behat/assign_no_calendar_capabilities.feature +++ b/mod/assign/tests/behat/assign_no_calendar_capabilities.feature @@ -25,7 +25,7 @@ Feature: Assignment with no calendar capabilites | activity | name | intro | course | section | | assign | Test assignment name | Test assignment description | C1 | 1 | And I am on the "Test assignment name" Activity page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Allow submissions from | ##1 January 2017## | | Due date | ##1 February 2017## | @@ -35,7 +35,7 @@ Feature: Assignment with no calendar capabilites And I log out When I am on the "Test assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Allow submissions from | ##1 January 2018## | | Due date | ##1 February 2018## | diff --git a/mod/assign/tests/behat/assign_user_override.feature b/mod/assign/tests/behat/assign_user_override.feature index eda100be1d4..99cbb590997 100644 --- a/mod/assign/tests/behat/assign_user_override.feature +++ b/mod/assign/tests/behat/assign_user_override.feature @@ -62,7 +62,7 @@ Feature: Assign user override @javascript Scenario: Allow a user to have a different due date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Allow submissions from | disabled | | Due date | ##1 Jan 2000 08:00## | @@ -85,7 +85,7 @@ Feature: Assign user override @javascript Scenario: Allow a user to have a different cut off date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Due date | disabled | | Allow submissions from | disabled | @@ -108,7 +108,7 @@ Feature: Assign user override @javascript Scenario: Allow a user to have a different start date Given I am on the "Test assignment name" Activity page logged in as teacher1 - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | Due date | disabled | | Allow submissions from | ##1 January 2030 08:00## | @@ -206,7 +206,7 @@ Feature: Assign user override @javascript Scenario: Create a user override when the assignment is not available to the student Given I am on the "Test assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Availability" to "Hide from students" And I click on "Save and display" "button" diff --git a/mod/assign/tests/behat/group_submission.feature b/mod/assign/tests/behat/group_submission.feature index 77bf4fa8e47..7cf09446126 100644 --- a/mod/assign/tests/behat/group_submission.feature +++ b/mod/assign/tests/behat/group_submission.feature @@ -43,7 +43,7 @@ Feature: Group assignment submissions And I set the following fields to these values: | Group mode | Separate groups | And I press "Save and return to course" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Separate groups | And I press "Save and display" diff --git a/mod/assign/tests/behat/hide_grader.feature b/mod/assign/tests/behat/hide_grader.feature index 00d41721884..a0b9411e678 100644 --- a/mod/assign/tests/behat/hide_grader.feature +++ b/mod/assign/tests/behat/hide_grader.feature @@ -58,7 +58,7 @@ Feature: Hide grader identities identity from students Scenario: Hidden grading is enabled. # Enable the hidden grader option Given I am on the "Test assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" And I set the field "Hide grader identity from students" to "1" And I press "Save and return to course" diff --git a/mod/assign/tests/behat/rescale_grades.feature b/mod/assign/tests/behat/rescale_grades.feature index f2e35e6fdb3..a2c6b18c612 100644 --- a/mod/assign/tests/behat/rescale_grades.feature +++ b/mod/assign/tests/behat/rescale_grades.feature @@ -39,7 +39,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c And I am on the "Test assignment name" "assign activity" page Scenario: Update the max grade for an assignment without rescaling existing grades - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Rescale existing grades" to "No" And I set the field "Maximum grade" to "80" @@ -48,14 +48,14 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00" Scenario: Update an assignment without touching the max grades - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Rescale existing grades" to "No" And I set the field "Maximum grade" to "80" And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I press "Save and display" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Rescale existing grades" to "Yes" And I set the field "Maximum grade" to "80" @@ -64,7 +64,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00" Scenario: Update the max grade for an assignment rescaling existing grades - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Rescale existing grades" to "Yes" And I set the field "Maximum grade" to "50" @@ -77,7 +77,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c And I click on "Grade" "link" in the "Student 2" "table_row" And I wait until the page is ready And I follow "Assignment: Test assignment name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Rescale existing grades" to "Yes" And I set the field "Maximum grade" to "50" diff --git a/mod/assign/tests/behat/set_availability.feature b/mod/assign/tests/behat/set_availability.feature index 62225c999f2..fa44b831753 100644 --- a/mod/assign/tests/behat/set_availability.feature +++ b/mod/assign/tests/behat/set_availability.feature @@ -30,7 +30,7 @@ Feature: Set availability dates for an assignment Scenario: Student cannot submit an assignment prior to the 'allow submissions from' date Given I am on the "Assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" # Set 'Allow submissions from' to tomorrow at noon. And I set the field "Allow submissions from" to "##tomorrow noon##" @@ -44,7 +44,7 @@ Feature: Set availability dates for an assignment Scenario: Student can see the assignment's due date in the course calendar Given I am on the "Assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" # Set 'Allow submissions from' to the first day of this month at noon. And I set the field "Allow submissions from" to "##first day of this month noon##" @@ -63,7 +63,7 @@ Feature: Set availability dates for an assignment @_file_upload Scenario: Student can submit an assignment before the due date Given I am on the "Assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" # Set 'Allow submissions from' to now. And I set the field "Allow submissions from" to "##now##" @@ -91,7 +91,7 @@ Feature: Set availability dates for an assignment @_file_upload Scenario: Student can submit an assignment after the due date and the submission is marked as late Given I am on the "Assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" # Set 'Allow submissions from' to 3 days ago. And I set the field "Allow submissions from" to "##3 days ago##" @@ -122,7 +122,7 @@ Feature: Set availability dates for an assignment Scenario: Student cannot submit an assignment after the cut-off date Given I am on the "Assignment name" Activity page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" # Set 'Allow submissions from' to 3 days ago. And I set the field "Allow submissions from" to "##3 days ago##" diff --git a/mod/book/tests/behat/display_book_description.feature b/mod/book/tests/behat/display_book_description.feature index de4307e8b33..b75c9cf9a64 100644 --- a/mod/book/tests/behat/display_book_description.feature +++ b/mod/book/tests/behat/display_book_description.feature @@ -34,7 +34,7 @@ Feature: Display the book description in the book and optionally in the course Scenario: Show book description in the course homepage Given I am on "Course 1" course homepage And I follow "Test book" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Display description on course page | | And I set the following fields to these values: @@ -46,7 +46,7 @@ Feature: Display the book description in the book and optionally in the course Scenario: Hide book description in the course homepage Given I am on "Course 1" course homepage And I follow "Test book" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Display description on course page | | And I press "Save and return to course" diff --git a/mod/book/tests/behat/edit_navigation_options.feature b/mod/book/tests/behat/edit_navigation_options.feature index 10a45af2127..0863561aa3d 100644 --- a/mod/book/tests/behat/edit_navigation_options.feature +++ b/mod/book/tests/behat/edit_navigation_options.feature @@ -40,13 +40,13 @@ Feature: In a book, change the navigation options And "Next" "link" should not exist And I click on "2. Test chapter 2" "link" in the "Table of contents" "block" And "Previous" "link" should not exist - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Style of navigation" to "Images" And I press "Save and display" And "Next:" "icon" should exist And I click on "2. Test chapter 2" "link" in the "Table of contents" "block" And "Previous:" "icon" should exist - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the field "Style of navigation" to "Text" And I press "Save and display" Then "Next" "link" should exist diff --git a/mod/book/tests/behat/log_entries.feature b/mod/book/tests/behat/log_entries.feature index cfa4add8df1..106ea9621bd 100644 --- a/mod/book/tests/behat/log_entries.feature +++ b/mod/book/tests/behat/log_entries.feature @@ -33,7 +33,7 @@ Feature: In a book, verify log entries And I click on "Next" "link" And I click on "Previous" "link" And I navigate to "Print book" in current page administration - And I navigate to "Generate IMS CP" in current page administration + And I navigate to "Download" in current page administration And I navigate to "Logs" in current page administration Then I should see "Book exported" And I should see "Book printed" diff --git a/mod/chat/tests/behat/chat_activity_completion.feature b/mod/chat/tests/behat/chat_activity_completion.feature index 3781da3c0ae..fd8e20f4334 100644 --- a/mod/chat/tests/behat/chat_activity_completion.feature +++ b/mod/chat/tests/behat/chat_activity_completion.feature @@ -18,7 +18,7 @@ Feature: View activity completion information in the chat activity | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Enable completion tracking | Yes | diff --git a/mod/chat/tests/behat/chat_course_reset.feature b/mod/chat/tests/behat/chat_course_reset.feature index 022f3848179..a47591a96c5 100644 --- a/mod/chat/tests/behat/chat_course_reset.feature +++ b/mod/chat/tests/behat/chat_course_reset.feature @@ -23,14 +23,14 @@ Feature: Chat reset Scenario: Use course reset to update chat start date And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | startdate[day] | 1 | | startdate[month] | January | | startdate[year] | 2020 | And I press "Save and display" And I follow "Test chat name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | chattime[day] | 1 | | chattime[month] | January | @@ -50,6 +50,6 @@ Feature: Chat reset And I press "Continue" Then I am on "Course 1" course homepage And I follow "Test chat name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And the "chattime[year]" select box should contain "2030" diff --git a/mod/chat/tests/behat/chat_no_calendar_capabilities.feature b/mod/chat/tests/behat/chat_no_calendar_capabilities.feature index 260b4684431..3feec4b7e06 100644 --- a/mod/chat/tests/behat/chat_no_calendar_capabilities.feature +++ b/mod/chat/tests/behat/chat_no_calendar_capabilities.feature @@ -29,7 +29,7 @@ Feature: Chat with no calendar capabilites | moodle/calendar:manageentries | Prohibit | And I am on "Course 1" course homepage And I follow "Test chat name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Repeat/publish session times | No repeats - publish the specified time only | | id_chattime_day | 1 | @@ -42,7 +42,7 @@ Feature: Chat with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test chat name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_chattime_year | 2018 | And I press "Save and return to course" diff --git a/mod/choice/tests/behat/allow_preview.feature b/mod/choice/tests/behat/allow_preview.feature index 3e62026bb5c..298f10d9797 100644 --- a/mod/choice/tests/behat/allow_preview.feature +++ b/mod/choice/tests/behat/allow_preview.feature @@ -29,7 +29,7 @@ Feature: Allow choice preview Scenario: Enable the choice preview option and view the activity as a student before the opening time And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeopen[enabled] | 1 | | timeclose[enabled] | 1 | diff --git a/mod/choice/tests/behat/choice_availability.feature b/mod/choice/tests/behat/choice_availability.feature index 9f618a5a4c7..d5ea9c077f0 100644 --- a/mod/choice/tests/behat/choice_availability.feature +++ b/mod/choice/tests/behat/choice_availability.feature @@ -25,7 +25,7 @@ Feature: Restrict availability of the choice module to a deadline | choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeopen[enabled] | 1 | | timeopen[day] | 30 | @@ -46,7 +46,7 @@ Feature: Restrict availability of the choice module to a deadline | choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeopen[enabled] | 1 | | timeopen[day] | 30 | @@ -67,7 +67,7 @@ Feature: Restrict availability of the choice module to a deadline | choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeclose[enabled] | 1 | | timeclose[day] | 30 | @@ -88,7 +88,7 @@ Feature: Restrict availability of the choice module to a deadline | choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeclose[enabled] | 1 | | timeclose[day] | 30 | diff --git a/mod/choice/tests/behat/choice_no_calendar_capabilities.feature b/mod/choice/tests/behat/choice_no_calendar_capabilities.feature index e2422a7b85e..fd7ac210b0b 100644 --- a/mod/choice/tests/behat/choice_no_calendar_capabilities.feature +++ b/mod/choice/tests/behat/choice_no_calendar_capabilities.feature @@ -29,7 +29,7 @@ Feature: Choice with no calendar capabilites Given I log in as "admin" And I am on "Course 1" course homepage And I follow "Test choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_enabled | 1 | | id_timeopen_day | 1 | @@ -44,7 +44,7 @@ Feature: Choice with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_year | 2018 | | id_timeclose_year | 2018 | diff --git a/mod/choice/tests/behat/limit_responses.feature b/mod/choice/tests/behat/limit_responses.feature index 6ded521a89c..88aca6593cb 100644 --- a/mod/choice/tests/behat/limit_responses.feature +++ b/mod/choice/tests/behat/limit_responses.feature @@ -26,7 +26,7 @@ Feature: Limit choice responses And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Limit 1" to "1" And I press "Save and display" And I log out @@ -48,7 +48,7 @@ Feature: Limit choice responses And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Limit the number of responses allowed | No | And I press "Save and return to course" diff --git a/mod/choice/tests/behat/modify_choice.feature b/mod/choice/tests/behat/modify_choice.feature index 04cd52dc77c..96da36ddb9b 100644 --- a/mod/choice/tests/behat/modify_choice.feature +++ b/mod/choice/tests/behat/modify_choice.feature @@ -40,7 +40,7 @@ Feature: Teacher can modify choices of the students And I log in as "teacher1" And I change window size to "large" And I am on the "Choice name" "choice activity" page - And I navigate to "View 1 responses" in current page administration + And I navigate to "Responses" in current page administration And I click on "Student 1 Option 1" "checkbox" And I select "Delete" from the "With selected" singleselect And "Student 1 Option 1" "checkbox" should not exist @@ -60,7 +60,7 @@ Feature: Teacher can modify choices of the students And I log out And I change window size to "large" And I am on the "Choice name" "choice activity" page logged in as teacher1 - And I navigate to "View 1 responses" in current page administration + And I navigate to "Responses" in current page administration And I click on "Student 1 Option 1" "checkbox" And I click on "Student 2 Not answered yet" "checkbox" And I click on "Student 3 Not answered yet" "checkbox" @@ -85,7 +85,7 @@ Feature: Teacher can modify choices of the students And I log out And I change window size to "large" And I am on the "Choice name" "choice activity" page logged in as teacher1 - And I navigate to "View 1 responses" in current page administration + And I navigate to "Responses" in current page administration And I click on "Student 1 Option 2" "checkbox" And I select "Delete" from the "With selected" singleselect And I click on "Student 1 Option 1" "checkbox" diff --git a/mod/choice/tests/behat/multiple_options.feature b/mod/choice/tests/behat/multiple_options.feature index be13fe91126..3d4ae67ce56 100644 --- a/mod/choice/tests/behat/multiple_options.feature +++ b/mod/choice/tests/behat/multiple_options.feature @@ -46,7 +46,7 @@ Feature: Multiple option choice response And I am on "Course 1" course homepage with editing mode on And I follow "Choice name" And I click on "Actions menu" "link" - And I follow "Edit settings" + And I follow "Settings" And I set the following fields to these values: | Limit 1 | 1 | | Limit 2 | 1 | @@ -77,7 +77,7 @@ Feature: Multiple option choice response And I should see "Limit: 1" And I am on "Course 1" course homepage with editing mode on And I follow "Choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Limit the number of responses allowed | No | And I press "Save and return to course" diff --git a/mod/choice/tests/behat/my_home.feature b/mod/choice/tests/behat/my_home.feature index d1fe29a95c8..6de7a96dcf6 100644 --- a/mod/choice/tests/behat/my_home.feature +++ b/mod/choice/tests/behat/my_home.feature @@ -22,7 +22,7 @@ Feature: Test the display of the choice module on my home And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test choice name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | timeopen[enabled] | 1 | | timeclose[enabled] | 1 | diff --git a/mod/choice/tests/behat/publish_info.feature b/mod/choice/tests/behat/publish_info.feature index 6b9ae22c5a8..5bc5ecf16eb 100644 --- a/mod/choice/tests/behat/publish_info.feature +++ b/mod/choice/tests/behat/publish_info.feature @@ -24,7 +24,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Do not publish results to students | And I press "Save and return to course" @@ -40,7 +40,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage When I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Show results to students after they answer | | Privacy of results | Publish full results, showing names and their choices | @@ -57,7 +57,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage When I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Publish results" to "Show results to students after they answer" And I press "Save and return to course" And I log out @@ -72,7 +72,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage When I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Publish results" to "Show results to students only after the choice is closed" And I set the field "Privacy of results" to "Publish full results, showing names and their choices" And I press "Save and return to course" @@ -88,7 +88,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage When I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Publish results" to "Show results to students only after the choice is closed" And I press "Save and return to course" And I log out @@ -103,7 +103,7 @@ Feature: A student can see how the results of the choice activity will be publis | choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 | And I am on "Course 1" course homepage When I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Publish results" to "Always show results to students" And I press "Save and return to course" And I log out diff --git a/mod/choice/tests/behat/publish_results.feature b/mod/choice/tests/behat/publish_results.feature index 989af1f46cd..5d246d66ac3 100644 --- a/mod/choice/tests/behat/publish_results.feature +++ b/mod/choice/tests/behat/publish_results.feature @@ -30,7 +30,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results | option | Option 1, Option 2 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Do not publish results to students | And I press "Save and return to course" @@ -53,7 +53,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results | option | Option 1, Option 2 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Show results to students after they answer | And I press "Save and return to course" @@ -78,7 +78,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results | option | Option 1, Option 2 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Show results to students only after the choice is closed | And I press "Save and return to course" @@ -92,7 +92,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Choice 1" - And I follow "Edit settings" + And I follow "Settings" And I expand all fieldsets And I set the following fields to these values: | timeopen[enabled] | 1 | @@ -121,7 +121,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results | option | Option 1, Option 2 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Always show results to students | And I press "Save and return to course" diff --git a/mod/choice/tests/behat/publish_results_anonymously.feature b/mod/choice/tests/behat/publish_results_anonymously.feature index f73c2e90028..04f583db461 100644 --- a/mod/choice/tests/behat/publish_results_anonymously.feature +++ b/mod/choice/tests/behat/publish_results_anonymously.feature @@ -26,7 +26,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo | choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Always show results to students | | Privacy of results | Publish anonymous results, do not show student names | @@ -48,7 +48,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo | choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 | And I am on "Course 1" course homepage And I follow "Choice 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Publish results | Always show results to students | | Privacy of results | Publish full results, showing names and their choices | diff --git a/mod/choice/tests/behat/remove_choice_options.feature b/mod/choice/tests/behat/remove_choice_options.feature index 13417bb7406..1e9fdebdc9b 100644 --- a/mod/choice/tests/behat/remove_choice_options.feature +++ b/mod/choice/tests/behat/remove_choice_options.feature @@ -37,7 +37,7 @@ Feature: Update a choice activity removing options And I am on "Course 1" course homepage And I follow "Choice name" And I should see "View 2 responses" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "option[2]" to "" And I press "Save and display" Then I should see "View 1 responses" diff --git a/mod/data/tests/behat/data_no_calendar_capabilities.feature b/mod/data/tests/behat/data_no_calendar_capabilities.feature index ec001ebfa1c..346539a04af 100644 --- a/mod/data/tests/behat/data_no_calendar_capabilities.feature +++ b/mod/data/tests/behat/data_no_calendar_capabilities.feature @@ -29,7 +29,7 @@ Feature: Database with no calendar capabilites | data | Test database name | Test database description | C1 | 1 | data1 | And I am on "Course 1" course homepage And I follow "Test database name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeavailablefrom_enabled | 1 | | id_timeavailablefrom_day | 1 | @@ -52,7 +52,7 @@ Feature: Database with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test database name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeavailablefrom_year | 2018 | | id_timeavailableto_year | 2018 | diff --git a/mod/feedback/tests/behat/anonymous.feature b/mod/feedback/tests/behat/anonymous.feature index b01c03541c8..e43da19ae8d 100644 --- a/mod/feedback/tests/behat/anonymous.feature +++ b/mod/feedback/tests/behat/anonymous.feature @@ -237,7 +237,7 @@ Feature: Anonymous feedback Scenario: Collecting new non-anonymous feedback from a previously anonymous feedback activity When I am on the "Course feedback" "feedback activity" page logged in as teacher - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Allow multiple submissions | Yes | And I press "Save and display" diff --git a/mod/feedback/tests/behat/feedback_no_calendar_capabilities.feature b/mod/feedback/tests/behat/feedback_no_calendar_capabilities.feature index b03ff5b1128..180e2bb421e 100644 --- a/mod/feedback/tests/behat/feedback_no_calendar_capabilities.feature +++ b/mod/feedback/tests/behat/feedback_no_calendar_capabilities.feature @@ -29,7 +29,7 @@ Feature: Feedback with no calendar capabilites And I log in as "admin" And I am on "Course 1" course homepage And I follow "Test feedback name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_enabled | 1 | | id_timeopen_day | 1 | @@ -44,7 +44,7 @@ Feature: Feedback with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test feedback name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_year | 2018 | | id_timeclose_year | 2018 | diff --git a/mod/forum/tests/behat/advanced_search.feature b/mod/forum/tests/behat/advanced_search.feature index 6717412cb09..c7667fff8be 100644 --- a/mod/forum/tests/behat/advanced_search.feature +++ b/mod/forum/tests/behat/advanced_search.feature @@ -24,7 +24,7 @@ Feature: The forum search allows users to perform advanced searches for forum po And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add the "Latest announcements" block - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "id_newsitems" to "1" And I press "Save and display" diff --git a/mod/forum/tests/behat/discussion_subscriptions.feature b/mod/forum/tests/behat/discussion_subscriptions.feature index fc8e8ba3a67..7f26d1150a0 100644 --- a/mod/forum/tests/behat/discussion_subscriptions.feature +++ b/mod/forum/tests/behat/discussion_subscriptions.feature @@ -134,7 +134,7 @@ Feature: A user can control their own subscription preferences for a discussion And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I log out And I am on the "Test forum name" "forum activity" page logged in as admin - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" @@ -178,7 +178,7 @@ Feature: A user can control their own subscription preferences for a discussion And I log out And I log in as "admin" And I am on the "Test forum name" "forum activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" diff --git a/mod/forum/tests/behat/forum_activity_completion.feature b/mod/forum/tests/behat/forum_activity_completion.feature index 9fb6f809415..05044ba3f28 100644 --- a/mod/forum/tests/behat/forum_activity_completion.feature +++ b/mod/forum/tests/behat/forum_activity_completion.feature @@ -91,7 +91,7 @@ Feature: View activity completion in the forum activity @javascript Scenario: Use manual completion Given I am on the "Music history" "forum activity" page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Completion tracking" to "Students can manually mark the activity as completed" And I press "Save and display" diff --git a/mod/forum/tests/behat/forum_subscriptions.feature b/mod/forum/tests/behat/forum_subscriptions.feature index 85c0c8210fd..ef40a0829c2 100644 --- a/mod/forum/tests/behat/forum_subscriptions.feature +++ b/mod/forum/tests/behat/forum_subscriptions.feature @@ -27,7 +27,7 @@ Feature: A user can control their own subscription preferences for a forum | section | 1 | And I am on "Course 1" course homepage Given I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Subscription disabled | And I press "Save and return to course" @@ -54,7 +54,7 @@ Feature: A user can control their own subscription preferences for a forum | section | 1 | And I am on "Course 1" course homepage Given I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Forced subscription | And I press "Save and return to course" @@ -81,7 +81,7 @@ Feature: A user can control their own subscription preferences for a forum | section | 1 | And I am on "Course 1" course homepage Given I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Optional subscription | And I press "Save and return to course" @@ -110,7 +110,7 @@ Feature: A user can control their own subscription preferences for a forum | section | 1 | And I am on "Course 1" course homepage Given I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" diff --git a/mod/forum/tests/behat/forum_subscriptions_availability.feature b/mod/forum/tests/behat/forum_subscriptions_availability.feature index 1a9f7a09104..c94f8f02395 100644 --- a/mod/forum/tests/behat/forum_subscriptions_availability.feature +++ b/mod/forum/tests/behat/forum_subscriptions_availability.feature @@ -72,7 +72,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users | idnumber | 0001 | | section | 1 | And I am on the "Forced Forum 2" "forum activity" page - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Forced subscription | | Availability | Show on course page | diff --git a/mod/forum/tests/behat/forum_subscriptions_management.feature b/mod/forum/tests/behat/forum_subscriptions_management.feature index 85b07489b6c..6e877d32184 100644 --- a/mod/forum/tests/behat/forum_subscriptions_management.feature +++ b/mod/forum/tests/behat/forum_subscriptions_management.feature @@ -29,7 +29,7 @@ Feature: A teacher can control the subscription to a forum When I log in as "teacher" And I am on "Course 1" course homepage And I follow "Test forum name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" diff --git a/mod/forum/tests/behat/grade_forum.feature b/mod/forum/tests/behat/grade_forum.feature index 3b40afd483d..0e7ffb9ac16 100644 --- a/mod/forum/tests/behat/grade_forum.feature +++ b/mod/forum/tests/behat/grade_forum.feature @@ -140,7 +140,7 @@ Feature: I can grade a students interaction across a forum | section | 1 | And I am on "Course 1" course homepage And I follow "Test Forum 1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "Ratings > Aggregate type" to "Count of ratings" And I set the field "Ratings > Type" to "Point" And I set the field "Ratings > Maximum grade" to "100" diff --git a/mod/h5pactivity/tests/behat/contentbank_link.feature b/mod/h5pactivity/tests/behat/contentbank_link.feature index bdccb1e93a2..d0c53c208cc 100644 --- a/mod/h5pactivity/tests/behat/contentbank_link.feature +++ b/mod/h5pactivity/tests/behat/contentbank_link.feature @@ -56,7 +56,7 @@ Feature: Content bank link in the activity settings form And I switch to "h5p-iframe" class iframe And I should see "Of which countries are Berlin, Washington, Beijing, Canberra and Brasilia the capitals?" And I switch to the main frame - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration Then I should not see "Use the content Bank (opens in new window) to manage your H5P files" And I should see "Access the H5P file in the content bank (opens in a new window)." And I follow "Access the H5P file in the content bank" @@ -79,7 +79,7 @@ Feature: Content bank link in the activity settings form And I switch to "h5p-iframe" class iframe And I should see "Of which countries are Berlin," And I switch to the main frame - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration Then I should see "Use the content bank (opens in new window) to manage your H5P files" @javascript @@ -103,5 +103,5 @@ Feature: Content bank link in the activity settings form And I switch to "h5p-iframe" class iframe And I should see "Which fruit is this?" And I switch to the main frame - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration Then I should see "Use the content bank (opens in new window) to manage your H5P files" diff --git a/mod/label/tests/behat/label_activity_completion.feature b/mod/label/tests/behat/label_activity_completion.feature index 81057f43779..c6a8cad300c 100644 --- a/mod/label/tests/behat/label_activity_completion.feature +++ b/mod/label/tests/behat/label_activity_completion.feature @@ -18,7 +18,7 @@ Feature: View activity completion information for the label | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Enable completion tracking | Yes | @@ -49,7 +49,7 @@ Feature: View activity completion information for the label @javascript Scenario: The manual completion button will be shown on the course page if the Show activity completion conditions is set to Yes Given I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Show activity completion conditions" to "Yes" And I press "Save and display" diff --git a/mod/lesson/tests/behat/all_other_answers_catch.feature b/mod/lesson/tests/behat/all_other_answers_catch.feature index bfc0ad682d2..4897ec5feaa 100644 --- a/mod/lesson/tests/behat/all_other_answers_catch.feature +++ b/mod/lesson/tests/behat/all_other_answers_catch.feature @@ -27,7 +27,7 @@ Feature: Numeric and short answer questions have a section to catch all other st And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Provide option to try a question again | Yes | diff --git a/mod/lesson/tests/behat/completion_condition_end_reached.feature b/mod/lesson/tests/behat/completion_condition_end_reached.feature index fc1c9b80410..391ab6be394 100644 --- a/mod/lesson/tests/behat/completion_condition_end_reached.feature +++ b/mod/lesson/tests/behat/completion_condition_end_reached.feature @@ -25,12 +25,12 @@ Feature: Set end of lesson reached as a completion condition for a lesson | section | 1 | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | completionview | 0 | diff --git a/mod/lesson/tests/behat/completion_condition_time_spent.feature b/mod/lesson/tests/behat/completion_condition_time_spent.feature index a47d80e6ae2..e3eabcf9ed8 100644 --- a/mod/lesson/tests/behat/completion_condition_time_spent.feature +++ b/mod/lesson/tests/behat/completion_condition_time_spent.feature @@ -24,12 +24,12 @@ Feature: Set time spent as a completion condition for a lesson | intro | Test lesson description | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Completion tracking | Show activity as complete when conditions are met | | completionview | 0 | diff --git a/mod/lesson/tests/behat/date_availability.feature b/mod/lesson/tests/behat/date_availability.feature index f92ecb9ae26..88d3ed850dd 100644 --- a/mod/lesson/tests/behat/date_availability.feature +++ b/mod/lesson/tests/behat/date_availability.feature @@ -25,7 +25,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson | lesson | Test lesson | Test lesson description | C1 | 1 | lesson1 | And I am on "Course 1" course homepage And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "id_available_enabled" to "1" And I set the following fields to these values: | available[day] | 1 | @@ -54,7 +54,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson | lesson | Test lesson | Test lesson description | C1 | 1 | lesson1 | And I am on "Course 1" course homepage And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the field "id_deadline_enabled" to "1" And I set the following fields to these values: | deadline[day] | 1 | diff --git a/mod/lesson/tests/behat/display_lesson_description.feature b/mod/lesson/tests/behat/display_lesson_description.feature index 877002bc1b7..9ea56d3635c 100644 --- a/mod/lesson/tests/behat/display_lesson_description.feature +++ b/mod/lesson/tests/behat/display_lesson_description.feature @@ -31,7 +31,7 @@ Feature: Display the lesson description in the lesson and optionally in the cour Scenario: Show lesson description in the course homepage Given I am on "Course 1" course homepage And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Display description on course page | | And I set the following fields to these values: @@ -43,7 +43,7 @@ Feature: Display the lesson description in the lesson and optionally in the cour Scenario: Hide lesson description in the course homepage Given I am on "Course 1" course homepage And I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And the following fields match these values: | Display description on course page | | And I press "Save and return to course" diff --git a/mod/lesson/tests/behat/lesson_informations_at_end.feature b/mod/lesson/tests/behat/lesson_informations_at_end.feature index 6ea79647f99..cdbcfb3e773 100644 --- a/mod/lesson/tests/behat/lesson_informations_at_end.feature +++ b/mod/lesson/tests/behat/lesson_informations_at_end.feature @@ -20,7 +20,7 @@ Feature: In a lesson activity, if custom scoring is not enabled, student should And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Custom scoring | No | And I press "Save and return to course" diff --git a/mod/lesson/tests/behat/lesson_navigation.feature b/mod/lesson/tests/behat/lesson_navigation.feature index cc8380be3a1..e3443a55300 100644 --- a/mod/lesson/tests/behat/lesson_navigation.feature +++ b/mod/lesson/tests/behat/lesson_navigation.feature @@ -93,7 +93,7 @@ Feature: In a lesson activity, students can navigate through a series of pages i | lesson | Test lesson name | Test lesson description | C1 | lesson1 | And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_review | Yes | | id_maxattempts | 3 | @@ -139,7 +139,7 @@ Feature: In a lesson activity, students can navigate through a series of pages i | lesson | Test lesson name | Test lesson description | C1 | lesson1 | And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_review | Yes | | id_maxattempts | 0 | diff --git a/mod/lesson/tests/behat/lesson_no_calendar_capabilities.feature b/mod/lesson/tests/behat/lesson_no_calendar_capabilities.feature index 3568d7d0984..cafd68398e0 100644 --- a/mod/lesson/tests/behat/lesson_no_calendar_capabilities.feature +++ b/mod/lesson/tests/behat/lesson_no_calendar_capabilities.feature @@ -33,7 +33,7 @@ Feature: Lesson with no calendar capabilites Given I log in as "admin" And I am on "Course 1" course homepage with editing mode on And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_available_enabled | 1 | | id_available_day | 1 | @@ -48,7 +48,7 @@ Feature: Lesson with no calendar capabilites When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_available_year | 2018 | | id_deadline_year | 2018 | diff --git a/mod/lesson/tests/behat/lesson_number_of_student_attempts.feature b/mod/lesson/tests/behat/lesson_number_of_student_attempts.feature index 730faaa5a0d..14be2e789fd 100644 --- a/mod/lesson/tests/behat/lesson_number_of_student_attempts.feature +++ b/mod/lesson/tests/behat/lesson_number_of_student_attempts.feature @@ -31,7 +31,7 @@ Feature: In Dashboard, teacher can see the number of student attempts to lessons | section | 1 | And I am on "Course 1" course homepage And I follow "Test lesson name" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | id_deadline_enabled | 1 | diff --git a/mod/lesson/tests/behat/lesson_practice.feature b/mod/lesson/tests/behat/lesson_practice.feature index c5335f79a41..86b9a71035b 100644 --- a/mod/lesson/tests/behat/lesson_practice.feature +++ b/mod/lesson/tests/behat/lesson_practice.feature @@ -38,7 +38,7 @@ Feature: Practice mode in a lesson activity Scenario: Non-practice lesson records grades in the gradebook Given I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Name | Non-practice lesson | | Description | This lesson will affect your course grade | @@ -58,7 +58,7 @@ Feature: Practice mode in a lesson activity Scenario: Practice lesson doesn't record grades in the gradebook Given I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Name | Practice lesson | | Description | This lesson will NOT affect your course grade | @@ -78,7 +78,7 @@ Feature: Practice mode in a lesson activity Scenario: Practice lesson with scale doesn't record grades in the gradebook Given I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Name | Practice lesson with scale | | Description | This lesson will NOT affect your course grade | diff --git a/mod/lesson/tests/behat/lesson_progress_bar.feature b/mod/lesson/tests/behat/lesson_progress_bar.feature index 7f081fd6b40..029b9171960 100644 --- a/mod/lesson/tests/behat/lesson_progress_bar.feature +++ b/mod/lesson/tests/behat/lesson_progress_bar.feature @@ -22,7 +22,7 @@ Feature: In a lesson activity, students can see their progress viewing a progres And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Progress bar | Yes | And I press "Save and return to course" diff --git a/mod/lesson/tests/behat/lesson_review.feature b/mod/lesson/tests/behat/lesson_review.feature index 43c30e1cce7..4fb06569f52 100644 --- a/mod/lesson/tests/behat/lesson_review.feature +++ b/mod/lesson/tests/behat/lesson_review.feature @@ -22,7 +22,7 @@ Feature: In a lesson activity, students can review the answers they gave to ques And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Display ongoing score | Yes | | Slideshow | Yes | diff --git a/mod/lesson/tests/behat/lesson_student_dashboard.feature b/mod/lesson/tests/behat/lesson_student_dashboard.feature index 3c19a49b81c..60228382560 100644 --- a/mod/lesson/tests/behat/lesson_student_dashboard.feature +++ b/mod/lesson/tests/behat/lesson_student_dashboard.feature @@ -68,7 +68,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit Scenario: A completed lesson with only questions that does not allow multiple attempts Given I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Re-takes allowed | 0 | And I press "Save and display" @@ -145,7 +145,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit Scenario: A completed lesson with only content pages that does not allow multiple attempts Given I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Re-takes allowed | 0 | And I press "Save and display" diff --git a/mod/lesson/tests/behat/link_to_gradebook.feature b/mod/lesson/tests/behat/link_to_gradebook.feature index 7a50c94187c..efd78902e30 100644 --- a/mod/lesson/tests/behat/link_to_gradebook.feature +++ b/mod/lesson/tests/behat/link_to_gradebook.feature @@ -54,7 +54,7 @@ Feature: link to gradebook on the end of lesson page Scenario: No link to gradebook for non graded lesson Given I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Type | None | And I press "Save and display" @@ -69,7 +69,7 @@ Feature: link to gradebook on the end of lesson page Scenario: No link to gradebook for practice lesson Given I follow "Test lesson" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Practice lesson | Yes | And I press "Save and display" @@ -84,7 +84,7 @@ Feature: link to gradebook on the end of lesson page Scenario: No link if Show gradebook to student disabled Given I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Show gradebook to students | No | And I press "Save and display" diff --git a/mod/lesson/tests/behat/teacher_grade_essays.feature b/mod/lesson/tests/behat/teacher_grade_essays.feature index 612cc7c6d97..7f541361c43 100644 --- a/mod/lesson/tests/behat/teacher_grade_essays.feature +++ b/mod/lesson/tests/behat/teacher_grade_essays.feature @@ -39,7 +39,7 @@ Feature: In a lesson activity, a non editing teacher can grade essay questions And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Separate groups | And I press "Save and return to course" diff --git a/mod/lesson/tests/behat/wrong_answer_continue.feature b/mod/lesson/tests/behat/wrong_answer_continue.feature index 30474f4c977..d4f6808b8fa 100644 --- a/mod/lesson/tests/behat/wrong_answer_continue.feature +++ b/mod/lesson/tests/behat/wrong_answer_continue.feature @@ -22,7 +22,7 @@ Feature: An incorrect response to an answer with multiple attempts show appropri And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test lesson name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Provide option to try a question again | Yes | | Maximum number of attempts per question | 2 | diff --git a/mod/quiz/tests/behat/quiz_no_calendar_capabilities.feature b/mod/quiz/tests/behat/quiz_no_calendar_capabilities.feature index 475444cffe8..1f117002cf6 100644 --- a/mod/quiz/tests/behat/quiz_no_calendar_capabilities.feature +++ b/mod/quiz/tests/behat/quiz_no_calendar_capabilities.feature @@ -24,7 +24,7 @@ Feature: Quiz with no calendar capabilites And I log in as "admin" And I am on "Course 1" course homepage And I follow "Test quiz name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_enabled | 1 | | id_timeopen_day | 1 | @@ -44,7 +44,7 @@ Feature: Quiz with no calendar capabilites Scenario: Editing a quiz When I am on the "Test quiz name" "mod_quiz > View" page logged in as "teacher1" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | id_timeopen_year | 2018 | | id_timeclose_year | 2018 | diff --git a/mod/quiz/tests/behat/settings_form_fields_disableif.feature b/mod/quiz/tests/behat/settings_form_fields_disableif.feature index 4851ae7c010..d4f6374c83a 100644 --- a/mod/quiz/tests/behat/settings_form_fields_disableif.feature +++ b/mod/quiz/tests/behat/settings_form_fields_disableif.feature @@ -59,7 +59,7 @@ Feature: Settings form fields disabled if not required | Attempts allowed | 3 | And I press "Save" And I follow "Test quiz" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Attempts allowed" to "1" Then the "Grading method" "field" should be enabled @@ -73,7 +73,7 @@ Feature: Settings form fields disabled if not required And I set the field "Attempts allowed" to "2" And I press "Save" And I follow "Test quiz" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Attempts allowed" to "1" Then the "Grading method" "field" should be enabled @@ -89,7 +89,7 @@ Feature: Settings form fields disabled if not required | Attempts allowed | Unlimited | And I press "Save" And I follow "Test quiz" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Attempts allowed" to "1" Then the "Grading method" "field" should be enabled diff --git a/mod/resource/tests/behat/resource_activity_completion.feature b/mod/resource/tests/behat/resource_activity_completion.feature index bfaae1a667f..09ea8db97b5 100644 --- a/mod/resource/tests/behat/resource_activity_completion.feature +++ b/mod/resource/tests/behat/resource_activity_completion.feature @@ -20,7 +20,7 @@ Feature: View activity completion information for file resources | displayoptions | 0,1,2,3,4,5,6 | resource | And I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | Enable completion tracking | Yes | @@ -62,7 +62,7 @@ Feature: View activity completion information for file resources @javascript Scenario: The manual completion button will be shown on the activity page and course page if Show activity completion conditions is set to Yes Given I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Show activity completion conditions" to "Yes" And I press "Save and display" @@ -92,7 +92,7 @@ Feature: View activity completion information for file resources @javascript Scenario: View automatic completion items - Given I navigate to "Edit settings" in current page administration + Given I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Show activity completion conditions" to "Yes" And I press "Save and display" diff --git a/mod/scorm/tests/behat/multisco_review_mode.feature b/mod/scorm/tests/behat/multisco_review_mode.feature index 69ec15cfb41..d2adda8f44b 100644 --- a/mod/scorm/tests/behat/multisco_review_mode.feature +++ b/mod/scorm/tests/behat/multisco_review_mode.feature @@ -18,7 +18,7 @@ Feature: Scorm multi-sco review mode. Scenario: Test review mode with a single sco completion. When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" @@ -50,7 +50,7 @@ Feature: Scorm multi-sco review mode. Scenario: Test review mode with all scos completed. When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" diff --git a/mod/scorm/tests/behat/scorm_activity_completion.feature b/mod/scorm/tests/behat/scorm_activity_completion.feature index f8b5883bfd0..ae5ad04b331 100644 --- a/mod/scorm/tests/behat/scorm_activity_completion.feature +++ b/mod/scorm/tests/behat/scorm_activity_completion.feature @@ -85,7 +85,7 @@ Feature: View activity completion in the SCORM activity @javascript Scenario: Use manual completion Given I am on the "Music history" "scorm activity" page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Completion tracking" to "Students can manually mark the activity as completed" And I press "Save and display" diff --git a/mod/survey/tests/behat/survey_types.feature b/mod/survey/tests/behat/survey_types.feature index 42682d83a4b..dcb2f905e13 100644 --- a/mod/survey/tests/behat/survey_types.feature +++ b/mod/survey/tests/behat/survey_types.feature @@ -20,18 +20,18 @@ Feature: A teacher can set three types of survey activity And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Test survey name" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Survey type | ATTLS (20 item version) | And I press "Save and return to course" And I follow "Test survey name" Then I should see "Attitudes Towards Thinking and Learning" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Survey type | Critical incidents | And I press "Save and display" And I should see "At what moment in class were you most engaged as a learner?" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Survey type | COLLES (Preferred and Actual) | And I press "Save and display" diff --git a/mod/workshop/allocation/manual/tests/behat/behat_workshopallocation_manual.php b/mod/workshop/allocation/manual/tests/behat/behat_workshopallocation_manual.php index bc33974f6b4..b47963a437a 100644 --- a/mod/workshop/allocation/manual/tests/behat/behat_workshopallocation_manual.php +++ b/mod/workshop/allocation/manual/tests/behat/behat_workshopallocation_manual.php @@ -88,7 +88,8 @@ class behat_workshopallocation_manual extends behat_base { */ public function i_allocate_submissions_in_workshop_as($workshopname, TableNode $table) { $this->execute("behat_navigation::go_to_breadcrumb_location", $workshopname); - $this->execute('behat_navigation::i_navigate_to_in_current_page_administration', get_string('allocate', 'workshop')); + $this->execute('behat_navigation::i_navigate_to_in_current_page_administration', + get_string('submissionsallocation', 'workshop')); $rows = $table->getRows(); $reviewer = $participant = null; for ($i = 0; $i < count($rows[0]); $i++) { diff --git a/mod/workshop/tests/behat/behat_mod_workshop.php b/mod/workshop/tests/behat/behat_mod_workshop.php index 22b4b0c5895..881cac9d012 100644 --- a/mod/workshop/tests/behat/behat_mod_workshop.php +++ b/mod/workshop/tests/behat/behat_mod_workshop.php @@ -93,7 +93,7 @@ class behat_mod_workshop extends behat_base { $this->execute("behat_navigation::i_am_on_page_instance", [$this->escape($workshopname), 'workshop activity']); $this->execute('behat_navigation::i_navigate_to_in_current_page_administration', - get_string('editassessmentform', 'workshop')); + get_string('assessmentform', 'workshop')); $this->execute("behat_forms::i_set_the_following_fields_to_these_values", $table); diff --git a/mod/workshop/tests/behat/embedded_images.feature b/mod/workshop/tests/behat/embedded_images.feature index 177c1caad29..52b36926b89 100644 --- a/mod/workshop/tests/behat/embedded_images.feature +++ b/mod/workshop/tests/behat/embedded_images.feature @@ -36,7 +36,7 @@ Feature: Teachers can embed images into instructions and conclusion fields And I click on "Save image" "button" And I press "Save and display" # Embed the image into Instructions for assessment. - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Instructions for assessment" to "

Image test

" And I select the text in the "Instructions for assessment" Atto editor @@ -49,7 +49,7 @@ Feature: Teachers can embed images into instructions and conclusion fields And I click on "Save image" "button" And I press "Save and display" # Embed the image into Conclusion. - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Conclusion" to "

Image test

" And I select the text in the "Conclusion" Atto editor diff --git a/mod/workshop/tests/behat/file_type_restriction.feature b/mod/workshop/tests/behat/file_type_restriction.feature index bde4d7ebf29..3867525efee 100644 --- a/mod/workshop/tests/behat/file_type_restriction.feature +++ b/mod/workshop/tests/behat/file_type_restriction.feature @@ -26,7 +26,7 @@ Feature: File types of the submission and feedback attachments can be limitted Scenario: Student submission attachments obey the list of allowed file types # Define workshop to accept only images as submission attachments. Given I am on the TestWorkshop "workshop activity" page logged in as teacher1 - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Submission attachment allowed file types" to "image" And I press "Save and display" diff --git a/mod/workshop/tests/behat/submission_types.feature b/mod/workshop/tests/behat/submission_types.feature index dbdcf603d94..6bb2dfb328b 100644 --- a/mod/workshop/tests/behat/submission_types.feature +++ b/mod/workshop/tests/behat/submission_types.feature @@ -40,23 +40,23 @@ Feature: Submission types | submissiontypefilerequired | 1 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | submissiontypetextrequired | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | submissiontypetextrequired | 1 | | submissiontypefilerequired | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | submissiontypefileavailable | 0 | And I press "Save and display" Then I should see "Setup phase" in the "h3#mod_workshop-userplanheading" "css_element" - When I navigate to "Edit settings" in current page administration + When I navigate to "Settings" in current page administration And I set the following fields to these values: | submissiontypefileavailable | 1 | | submissiontypefilerequired | 1 | diff --git a/mod/workshop/tests/behat/workshop_late_submission.feature b/mod/workshop/tests/behat/workshop_late_submission.feature index 314451f3682..e555611e925 100644 --- a/mod/workshop/tests/behat/workshop_late_submission.feature +++ b/mod/workshop/tests/behat/workshop_late_submission.feature @@ -44,7 +44,7 @@ Feature: Workshop 'Late submissions are allowed' task # Teacher modifies submission deadline. When I am on the "TestWorkshop1" "workshop activity" page logged in as teacher1 Then I should see "Late submissions are allowed" - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I follow "Expand all" And I set the field "id_submissionend_day" to "1" And I set the field "id_submissionend_month" to "January" diff --git a/report/log/tests/behat/filter_log_actions.feature b/report/log/tests/behat/filter_log_actions.feature index 9fcb4ba7d50..fe4224eedac 100644 --- a/report/log/tests/behat/filter_log_actions.feature +++ b/report/log/tests/behat/filter_log_actions.feature @@ -21,7 +21,7 @@ Feature: In a report, admin can filter log data by action # View Action. And I follow "Test assignment 1" # Update Action. - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I press "Save and return to course" # Delete Action. And I delete "Test assignment 1" activity diff --git a/theme/boost/tests/behat/contextmenu.feature b/theme/boost/tests/behat/contextmenu.feature index 7e5a1002634..0c184028923 100644 --- a/theme/boost/tests/behat/contextmenu.feature +++ b/theme/boost/tests/behat/contextmenu.feature @@ -18,8 +18,7 @@ Feature: Context settings menu Scenario: Teacher can use the context settings menu And I log in as "teacher1" And I am on "Course 1" course homepage - And I click on ".context-header-settings-menu [role=button]" "css_element" - And I choose "Edit settings" in the open action menu + And I navigate to "Settings" in current page administration And I should see "Edit course settings" And I log out diff --git a/theme/boost/tests/behat/languagemenu.feature b/theme/boost/tests/behat/languagemenu.feature index 94eac0609b0..46475e0cfd5 100644 --- a/theme/boost/tests/behat/languagemenu.feature +++ b/theme/boost/tests/behat/languagemenu.feature @@ -43,7 +43,7 @@ Feature: Language selector menu Scenario: Logged user is not presented with a language selector in a course if a language is forced in that context Given I log in as "teacher1" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: | id_lang | en | diff --git a/theme/boost/tests/behat/regionmainsettingsmenu.feature b/theme/boost/tests/behat/regionmainsettingsmenu.feature index a27fcc00a30..c923247a251 100644 --- a/theme/boost/tests/behat/regionmainsettingsmenu.feature +++ b/theme/boost/tests/behat/regionmainsettingsmenu.feature @@ -24,7 +24,7 @@ Feature: Region main settings menu Then "#region-main-settings-menu [role=button]" "css_element" should not exist And I am on the "Choice name" "Choice activity" page And I click on "#region-main-settings-menu [role=button]" "css_element" - And I choose "Edit settings" in the open action menu + And I choose "Settings" in the open action menu And I should see "Updating: Choice" And I navigate to course participants And I click on "#region-main-settings-menu [role=button]" "css_element" diff --git a/theme/classic/tests/behat/pageadministrationmenu.feature b/theme/classic/tests/behat/pageadministrationmenu.feature index bb5060ad08e..683f4b4aabb 100644 --- a/theme/classic/tests/behat/pageadministrationmenu.feature +++ b/theme/classic/tests/behat/pageadministrationmenu.feature @@ -23,8 +23,8 @@ Feature: Page administration menu And I am on "Course 1" course homepage And I follow "Choice name" And I should see the page administration menu - And "Edit settings" "link" should exist in current page administration - And I navigate to "Edit settings" in current page administration + And "Settings" "link" should exist in current page administration + And I navigate to "Settings" in current page administration And I should see "Updating: Choice" And I navigate to course participants And I should see the page administration menu diff --git a/user/tests/behat/view_full_profile.feature b/user/tests/behat/view_full_profile.feature index 59549fdea27..ac1a1c86a98 100644 --- a/user/tests/behat/view_full_profile.feature +++ b/user/tests/behat/view_full_profile.feature @@ -102,7 +102,7 @@ Feature: Access to full profiles of users Scenario: View full profiles of someone in the same group in a course with separate groups. Given I log in as "admin" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I set the following fields to these values: | Group mode | Separate groups | | Force group mode | Yes | diff --git a/user/tests/behat/view_participants_groups.feature b/user/tests/behat/view_participants_groups.feature index 11f2ddcb88f..efb7fe02595 100644 --- a/user/tests/behat/view_participants_groups.feature +++ b/user/tests/behat/view_participants_groups.feature @@ -48,7 +48,7 @@ Feature: View course participants groups Scenario: User should be able to see other groups in visible group mode Given I log in as "admin" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Group mode" to "Visible groups" And I press "Save and display" @@ -68,7 +68,7 @@ Feature: View course participants groups Scenario: User should be able to see all users in no groups mode Given I log in as "admin" And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I navigate to "Settings" in current page administration And I expand all fieldsets And I set the field "Group mode" to "No groups" And I press "Save and display"