MDL-57281 behat: deprecated step definition I navigate to node in
authorVíctor Déniz Falcón <victor@moodle.com>
Mon, 20 Aug 2018 11:53:26 +0000 (12:53 +0100)
committerVíctor Déniz Falcón <victor@moodle.com>
Mon, 20 Aug 2018 11:53:26 +0000 (12:53 +0100)
Definition step deprecated and affected tests modified.

233 files changed:
admin/tests/behat/enable_multiple_accounts_use_same_email.feature
admin/tool/availabilityconditions/tests/behat/manage_conditions.feature
admin/tool/behat/tests/behat/data_generators.feature
admin/tool/behat/tests/behat/get_and_set_fields.feature
admin/tool/behat/tests/behat/list_steps.feature
admin/tool/filetypes/tests/behat/add_filetypes.feature
admin/tool/httpsreplace/tests/behat/httpsreplace.feature
admin/tool/langimport/tests/behat/manage_langpacks.feature
admin/tool/monitor/tests/behat/disabled.feature
admin/tool/monitor/tests/behat/rule.feature
admin/tool/monitor/tests/behat/subscription.feature
admin/tool/policy/tests/behat/consent.feature
admin/tool/recyclebin/tests/behat/backup_user_data.feature
admin/tool/recyclebin/tests/behat/basic_functionality.feature
admin/tool/task/tests/behat/clear_fail_delay.feature
admin/tool/task/tests/behat/manage_tasks.feature
admin/tool/task/tests/behat/run_task_now.feature
admin/tool/uploadcourse/tests/behat/create.feature
admin/tool/uploadcourse/tests/behat/update.feature
admin/tool/uploaduser/tests/behat/upload_users.feature
admin/tool/usertours/tests/behat/behat_tool_usertours.php
auth/tests/behat/validateagedigitalconsentmap.feature
availability/condition/completion/tests/behat/conditional_bug.feature
availability/condition/profile/tests/behat/availability_profile.feature
backup/util/ui/tests/behat/import_groups.feature
backup/util/ui/tests/behat/restore_moodle2_courses.feature
backup/util/ui/tests/behat/restore_moodle2_courses_settings.feature
badges/tests/behat/add_badge.feature
badges/tests/behat/award_badge.feature
badges/tests/behat/criteria_cohort.feature
badges/tests/behat/criteria_profile.feature
badges/tests/behat/role_visibility.feature
blocks/admin_bookmarks/tests/behat/bookmark_admin_pages.feature
blocks/badges/tests/behat/block_badges_course.feature
blocks/badges/tests/behat/block_badges_dashboard.feature
blocks/badges/tests/behat/block_badges_frontpage.feature
blocks/blog_menu/tests/behat/block_blog_menu_frontpage.feature
blocks/blog_recent/tests/behat/block_blog_recent_frontpage.feature
blocks/calendar_month/tests/behat/block_calendar_month.feature
blocks/calendar_upcoming/tests/behat/block_calendar_upcoming_frontpage.feature
blocks/comments/tests/behat/block_comment_frontpage.feature
blocks/completionstatus/tests/behat/block_completionstatus.feature
blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature
blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature
blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature
blocks/course_list/tests/behat/block_course_list_frontpage.feature
blocks/course_summary/tests/behat/block_course_summary_frontpage.feature
blocks/login/tests/behat/login_block.feature
blocks/myprofile/tests/behat/block_myprofile_frontpage.feature
blocks/navigation/tests/behat/expand_courses_node.feature
blocks/online_users/tests/behat/block_online_users_frontpage.feature
blocks/participants/tests/behat/block_participants_frontpage.feature
blocks/private_files/tests/behat/block_private_files_frontpage.feature
blocks/search_forums/tests/behat/block_search_forums_course.feature
blocks/search_forums/tests/behat/block_search_forums_frontpage.feature
blocks/site_main_menu/tests/behat/add_url.feature
blocks/site_main_menu/tests/behat/edit_activities.feature
blocks/tag_flickr/tests/behat/configuring_tag_flickr_block.feature
blocks/tests/behat/configure_block_throughout_site.feature
blog/tests/behat/blog_visibility.feature
blog/tests/behat/comment.feature
blog/tests/behat/delete.feature
calendar/tests/behat/category_events.feature
cohort/tests/behat/access_visible_cohorts.feature
cohort/tests/behat/add_cohort.feature
cohort/tests/behat/behat_cohort.php
cohort/tests/behat/upload_cohort_users.feature
cohort/tests/behat/upload_cohorts.feature
cohort/tests/behat/view_cohorts.feature
completion/tests/behat/behat_completion.php
completion/tests/behat/enable_manual_complete_mark.feature
course/tests/behat/behat_course.php
course/tests/behat/coursetags.feature
course/tests/behat/keyholder.feature
course/tests/behat/max_number_sections.feature
course/tests/behat/role_renaming.feature
enrol/guest/tests/behat/guest_access.feature
enrol/lti/tests/behat/basic_settings.feature
enrol/lti/tests/behat/index_page.feature
enrol/meta/tests/behat/enrol_meta.feature
enrol/self/tests/behat/key_holder.feature
enrol/tests/behat/behat_enrol.php
enrol/tests/behat/enrol_user.feature
enrol/tests/behat/role_visibility.feature
files/tests/behat/add_custom_file_type.feature
files/tests/behat/course_files.feature
grade/tests/behat/grade_UI_settings.feature
grade/tests/behat/grade_average.feature
grade/tests/behat/grade_category_validation.feature
grade/tests/behat/grade_hidden_items.feature
grade/tests/behat/grade_item_validation.feature
grade/tests/behat/grade_letter_logging.feature
grade/tests/behat/grade_point_maximum.feature
grade/tests/behat/grade_scales.feature
grade/tests/behat/grade_scales_aggregation.feature
grade/tests/behat/grade_scales_logging.feature
grade/tests/behat/grade_single_item_scales.feature
group/tests/behat/overview.feature
group/tests/behat/role_visibility.feature
lib/editor/atto/tests/behat/autosave.feature
lib/form/tests/behat/modgrade_validation.feature
lib/tests/behat/alpha_chooser.feature
lib/tests/behat/behat_deprecated.php
lib/tests/behat/behat_navigation.php
lib/tests/behat/behat_permissions.php
lib/tests/behat/timezone.feature
lib/upgrade.txt
media/player/videojs/tests/behat/modules.feature
message/tests/behat/update_messaging_preferences.feature
mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature
mod/assign/tests/behat/assign_course_reset.feature
mod/assign/tests/behat/outcome_grading.feature
mod/assign/tests/behat/quickgrading.feature
mod/chat/tests/behat/chat_calendar_events.feature
mod/chat/tests/behat/chat_course_reset.feature
mod/data/tests/behat/behat_mod_data.php
mod/forum/tests/behat/advanced_search.feature
mod/lesson/tests/behat/lesson_course_reset.feature
mod/lti/tests/behat/addtool.feature
mod/lti/tests/behat/backup_restore.feature
mod/lti/tests/behat/contentitem.feature
mod/lti/tests/behat/contentitemregistration.feature
mod/lti/tests/behat/toolconfigure.feature
mod/quiz/tests/behat/backup.feature
mod/quiz/tests/behat/behat_mod_quiz.php
mod/quiz/tests/behat/completion_condition_attempts_used.feature
mod/quiz/tests/behat/completion_condition_passing_grade.feature
mod/quiz/tests/behat/editing_add.feature
mod/quiz/tests/behat/editing_add_from_question_bank.feature
mod/quiz/tests/behat/editing_add_random.feature
mod/quiz/tests/behat/quiz_reset.feature
mod/wiki/tests/behat/reset_wiki_comments_tags_files.feature
my/tests/behat/reset_all_pages.feature
question/format/gift/tests/behat/import_export.feature
question/format/webct/tests/behat/import.feature
question/format/webct/tests/behat/importcalculated.feature
question/format/xml/tests/behat/import_export.feature
question/tests/behat/copy_questions.feature
question/tests/behat/delete_questions.feature
question/tests/behat/edit_questions.feature
question/tests/behat/edit_questions_standard_tags.feature
question/tests/behat/filter_questions_by_tag.feature
question/tests/behat/move_question_categories.feature
question/tests/behat/preview_question.feature
question/tests/behat/question_categories.feature
question/tests/behat/sort_questions.feature
question/type/ddimageortext/tests/behat/add.feature
question/type/ddimageortext/tests/behat/backup_and_restore.feature
question/type/ddimageortext/tests/behat/edit.feature
question/type/ddimageortext/tests/behat/export.feature
question/type/ddimageortext/tests/behat/import.feature
question/type/ddimageortext/tests/behat/preview.feature
question/type/ddmarker/tests/behat/add.feature
question/type/ddmarker/tests/behat/backup_and_restore.feature
question/type/ddmarker/tests/behat/edit.feature
question/type/ddmarker/tests/behat/export.feature
question/type/ddmarker/tests/behat/import.feature
question/type/ddmarker/tests/behat/preview.feature
question/type/ddwtos/tests/behat/add.feature
question/type/ddwtos/tests/behat/backup_and_restore.feature
question/type/ddwtos/tests/behat/edit.feature
question/type/ddwtos/tests/behat/export.feature
question/type/ddwtos/tests/behat/import.feature
question/type/ddwtos/tests/behat/preview.feature
question/type/description/tests/behat/add.feature
question/type/description/tests/behat/backup_and_restore.feature
question/type/description/tests/behat/edit.feature
question/type/description/tests/behat/export.feature
question/type/description/tests/behat/import.feature
question/type/description/tests/behat/preview.feature
question/type/essay/tests/behat/add.feature
question/type/essay/tests/behat/backup_and_restore.feature
question/type/essay/tests/behat/edit.feature
question/type/essay/tests/behat/export.feature
question/type/essay/tests/behat/import.feature
question/type/essay/tests/behat/preview.feature
question/type/gapselect/tests/behat/basic_test.feature
question/type/gapselect/tests/behat/import_test.feature
question/type/match/tests/behat/add.feature
question/type/match/tests/behat/backup_and_restore.feature
question/type/match/tests/behat/edit.feature
question/type/match/tests/behat/export.feature
question/type/match/tests/behat/import.feature
question/type/match/tests/behat/preview.feature
question/type/multichoice/tests/behat/add.feature
question/type/multichoice/tests/behat/backup_and_restore.feature
question/type/multichoice/tests/behat/edit.feature
question/type/multichoice/tests/behat/export.feature
question/type/multichoice/tests/behat/import.feature
question/type/multichoice/tests/behat/preview.feature
question/type/shortanswer/tests/behat/add.feature
question/type/shortanswer/tests/behat/backup_and_restore.feature
question/type/shortanswer/tests/behat/edit.feature
question/type/shortanswer/tests/behat/export.feature
question/type/shortanswer/tests/behat/import.feature
question/type/shortanswer/tests/behat/preview.feature
question/type/truefalse/tests/behat/add.feature
question/type/truefalse/tests/behat/backup_and_restore.feature
question/type/truefalse/tests/behat/edit.feature
question/type/truefalse/tests/behat/export.feature
question/type/truefalse/tests/behat/import.feature
question/type/truefalse/tests/behat/preview.feature
report/eventlist/tests/behat/mainsection.feature
report/log/tests/behat/filter_log.feature
report/log/tests/behat/filter_log_actions.feature
report/log/tests/behat/user_log.feature
report/loglive/tests/behat/loglive_report.feature
report/outline/tests/behat/filter.feature
report/outline/tests/behat/outline.feature
report/outline/tests/behat/user.feature
report/participation/tests/behat/filter_participation.feature
report/participation/tests/behat/message_participants.feature
report/progress/tests/behat/activity_completion_report.feature
tag/tests/behat/collections.feature
tag/tests/behat/delete_tag.feature
tag/tests/behat/edit_tag.feature
tag/tests/behat/flag_tags.feature
tag/tests/behat/standard_tags.feature
tag/tests/behat/tagindex.feature
theme/boost/tests/behat/behat_theme_boost_behat_deprecated.php [new file with mode: 0644]
theme/boost/tests/behat/behat_theme_boost_behat_mod_quiz.php
theme/boost/tests/behat/behat_theme_boost_behat_navigation.php
user/tests/behat/addnewuser.feature
user/tests/behat/custom_profile_fields.feature
user/tests/behat/delete_users.feature
user/tests/behat/edit_user_enrolment.feature
user/tests/behat/edituserpassword.feature
user/tests/behat/enrol_cohort_list.feature
user/tests/behat/name_fields.feature
user/tests/behat/table_sorting.feature
user/tests/behat/user_grade_navigation.feature
user/tests/behat/view_full_profile.feature
user/tests/behat/view_preferences_page.feature

index 30d21b9..65dffa3 100644 (file)
@@ -10,7 +10,7 @@ Feature: Enable multiple accounts to have the same email address
   Scenario: Enable registration of multiple accounts with the same email address
     Given the following config values are set as admin:
       | allowaccountssameemail | 1 |
-    When I navigate to "Add a new user" node in "Site administration>Users>Accounts"
+    When I navigate to "Users > Accounts > Add a new user" in site administration
     And I set the following fields to these values:
       | Username                        | testmultiemailuser1             |
       | Choose an authentication method | Manual accounts                 |
@@ -35,7 +35,7 @@ Feature: Enable multiple accounts to have the same email address
   Scenario: Disable registration of multiple accounts with the same email address
     Given the following config values are set as admin:
       | allowaccountssameemail | 0 |
-    When I navigate to "Add a new user" node in "Site administration>Users>Accounts"
+    When I navigate to "Users > Accounts > Add a new user" in site administration
     And I set the following fields to these values:
       | Username                        | testmultiemailuser1             |
       | Choose an authentication method | Manual accounts                 |
index 97b5b20..8fef761 100644 (file)
@@ -20,7 +20,7 @@ Feature: Manage availability conditions
     And the following config values are set as admin:
       | enableavailability | 1 |
     And I am on homepage
-    And I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
+    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
 
     # Having clicked on it, I should also see the list of plugins.
     And I should see "Restriction by date"
@@ -34,7 +34,7 @@ Feature: Manage availability conditions
       | Course 1 | C1        | topics |
     And I log in as "admin"
     And I am on site homepage
-    When I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
+    When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
 
     # Check the icon is there (it should be a Hide icon, meaning is currently visible).
     Then "Hide" "icon" should exist in the "Restriction by date" "table_row"
index 0e62104..f078fab 100644 (file)
@@ -286,7 +286,7 @@ Feature: Set up contextual data for tests
       | student1 | CHSB   |
       | student1 | CHC    |
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > Cohorts" in site administration
     Then the following should exist in the "cohorts" table:
       | Name            | Cohort size |
       | System cohort A | 1           |
index 62a6fe8..9ade5e0 100644 (file)
@@ -34,7 +34,7 @@ Feature: Verify that all form fields values can be get and set
       | wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
     And I log in as "admin"
     And I am on "Course 1" course homepage
-    And I navigate to "Reset" node in "Course administration"
+    And I navigate to "Reset" in current page administration
     # Select (multi-select) - Checking "the select box should contain".
     And I expand all fieldsets
     And the "Unenrol users" select box should contain "No roles"
@@ -131,12 +131,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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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
index 708a0e7..2df5363 100644 (file)
@@ -7,7 +7,7 @@ Feature: List the system steps definitions
   Background:
     Given I am on homepage
     And I log in as "admin"
-    And I navigate to "Acceptance testing" node in "Site administration > Development"
+    And I navigate to "Development > Acceptance testing" in site administration
 
   @javascript
   Scenario: Accessing the list
index 5c464ba..90e8d21 100644 (file)
@@ -6,7 +6,7 @@ Feature: Add customised file types
 
   Scenario: Add a new file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     And I press "Add"
     # Try setting all the form fields, not just the optional ones.
     And I set the following fields to these values:
@@ -24,7 +24,7 @@ Feature: Add customised file types
 
   Scenario: Update an existing file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     When I click on "Edit 7z" "link"
     And I set the following fields to these values:
       | Extension | doc |
@@ -37,7 +37,7 @@ Feature: Add customised file types
 
   Scenario: Change the text option (was buggy)
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     When I click on "Edit 7z" "link"
     And I set the following fields to these values:
       | Description type   | Custom description specified in this form |
@@ -51,7 +51,7 @@ Feature: Add customised file types
 
   Scenario: Try to select a text option without entering a value.
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     When I click on "Edit dmg" "link"
     And I set the field "Description type" to "Custom description"
     And I press "Save changes"
@@ -66,7 +66,7 @@ Feature: Add customised file types
 
   Scenario: Delete an existing file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     When I click on "Delete 7z" "link"
     Then I should see "Are you absolutely sure you want to remove .7z?"
     And I press "Yes"
@@ -74,7 +74,7 @@ Feature: Add customised file types
 
   Scenario: Delete a custom file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     And I press "Add"
     And I set the following fields to these values:
       | Extension                  | frog                                      |
@@ -86,7 +86,7 @@ Feature: Add customised file types
 
   Scenario: Revert changes to deleted file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     When I click on "Delete 7z" "link"
     And I press "Yes"
     And I follow "Restore 7z to Moodle defaults"
@@ -95,7 +95,7 @@ Feature: Add customised file types
 
   Scenario: Revert changes to updated file type
     Given I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     And I click on "Edit 7z" "link"
     And I set the following fields to these values:
       | Type groups | document |
@@ -110,7 +110,7 @@ Feature: Add customised file types
       | fullname | shortname |
       | Course 1 | C1        |
     And I log in as "admin"
-    And I navigate to "File types" node in "Site administration > Server"
+    And I navigate to "Server > File types" in site administration
     And I press "Add"
     And I set the following fields to these values:
       | Extension          | frog                                      |
index 0b79d8b..76e77e0 100644 (file)
@@ -13,14 +13,14 @@ Feature: View the httpsreplace report
 
   @javascript
   Scenario: Go to the HTTPS replace report screen. Make sure broken domains are reported.
-    When I navigate to "HTTP security" node in "Site administration > Security"
+    When I navigate to "Security > HTTP security" in site administration
     And I follow "HTTPS conversion tool"
     And I press "Continue"
     Then I should see "intentionally.unavailable"
 
   @javascript
   Scenario: Use the find and replace tool.
-    When I navigate to "HTTP security" node in "Site administration > Security"
+    When I navigate to "Security > HTTP security" in site administration
     And I follow "HTTPS conversion tool"
     And I press "Continue"
     And I set the field "I understand the risks of this operation" to "1"
index e1b9170..63fcc53 100644 (file)
@@ -11,29 +11,29 @@ Feature: Manage language packs
 
   Scenario: Install language pack
     Given I log in as "admin"
-    And I navigate to "Language packs" node in "Site administration > Language"
+    And I navigate to "Language > Language packs" in site administration
     When I set the field "Available language packs" to "en_ar"
     And I press "Install selected language pack(s)"
     Then I should see "Language pack 'en_ar' was successfully installed"
     And the "Installed language packs" select box should contain "en_ar"
-    And I navigate to "Live logs" node in "Site administration > Reports"
+    And I navigate to "Reports > Live logs" in site administration
     And I should see "The language pack 'en_ar' was installed."
     And I log out
 
   Scenario: Update language pack
     Given outdated langpack 'en_ar' is installed
     And I log in as "admin"
-    And I navigate to "Language packs" node in "Site administration > Language"
+    And I navigate to "Language > Language packs" in site administration
     When I press "Update all installed language packs"
     Then I should see "Language pack 'en_ar' was successfully updated"
     And I should see "Language pack update completed"
-    And I navigate to "Live logs" node in "Site administration > Reports"
+    And I navigate to "Reports > Live logs" in site administration
     And I should see "The language pack 'en_ar' was updated."
     And I log out
 
   Scenario: Try to uninstall language pack
     Given I log in as "admin"
-    And I navigate to "Language packs" node in "Site administration > Language"
+    And I navigate to "Language > Language packs" in site administration
     And I set the field "Available language packs" to "en_ar"
     And I press "Install selected language pack(s)"
     When I set the field "Installed language packs" to "en_ar"
@@ -42,17 +42,17 @@ Feature: Manage language packs
     Then I should see "Language pack 'en_ar' was uninstalled"
     And the "Installed language packs" select box should not contain "en_ar"
     And the "Available language packs" select box should contain "en_ar"
-    And I navigate to "Live logs" node in "Site administration > Reports"
+    And I navigate to "Reports > Live logs" in site administration
     And I should see "The language pack 'en_ar' was removed."
     And I should see "Language pack uninstalled"
     And I log out
 
   Scenario: Try to uninstall English language pack
     Given I log in as "admin"
-    And I navigate to "Language packs" node in "Site administration > Language"
+    And I navigate to "Language > Language packs" in site administration
     When I set the field "Installed language packs" to "en"
     And I press "Uninstall selected language pack(s)"
     Then I should see "The English language pack cannot be uninstalled."
-    And I navigate to "Live logs" node in "Site administration > Reports"
+    And I navigate to "Reports > Live logs" in site administration
     And I should not see "Language pack uninstalled"
     And I log out
index 01c7619..d027a0f 100644 (file)
@@ -6,7 +6,7 @@ Feature: Enable/disable managment of the event monitor
 
   Scenario: Tool is disabled by default.
     Given I log in as "admin"
-    When I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    When I navigate to "Reports > Event monitoring rules" in site administration
     Then I should see "Event monitoring is currently disabled"
     And I should see "Enable"
     And I should not see "Add a new rule"
index de818df..822cf96 100644 (file)
@@ -15,10 +15,10 @@ Feature: tool_monitor_rule
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     And I click on "Enable" "link"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     And I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule course level                             |
@@ -29,7 +29,7 @@ Feature: tool_monitor_rule
       | minutes              | 1                                                 |
       | Notification message | The forum post was created. {modulelink}          |
     And I press "Save changes"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     And I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule site level                               |
@@ -45,7 +45,7 @@ Feature: tool_monitor_rule
   Scenario: Add a rule on course level
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     When I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule                                          |
@@ -65,7 +65,7 @@ Feature: tool_monitor_rule
   Scenario: Delete a rule on course level
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     When I click on "Delete rule" "link"
     Then I should see "Are you sure you want to delete the rule \"New rule course level\"?"
     And I press "Continue"
@@ -75,7 +75,7 @@ Feature: tool_monitor_rule
   Scenario: Edit a rule on course level
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     When I click on "Edit rule" "link"
     And I set the following fields to these values:
       | name                 | New rule quiz                                  |
@@ -94,7 +94,7 @@ Feature: tool_monitor_rule
   Scenario: Duplicate a rule on course level
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     When I click on "Duplicate rule" "link" in the "New rule course level" "table_row"
     Then I should see "Rule successfully duplicated"
     And "#toolmonitorrules_r1" "css_element" should appear before "#toolmonitorrules_r2" "css_element"
@@ -106,7 +106,7 @@ Feature: tool_monitor_rule
 
   Scenario: Add a rule on site level
     Given I log in as "admin"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     When I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule                                          |
@@ -125,7 +125,7 @@ Feature: tool_monitor_rule
 
   Scenario: Delete a rule on site level
     Given I log in as "admin"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     When I click on "Delete rule" "link"
     Then I should see "Are you sure you want to delete the rule \"New rule site level\"?"
     And I press "Continue"
@@ -134,7 +134,7 @@ Feature: tool_monitor_rule
 
   Scenario: Edit a rule on site level
     Given I log in as "admin"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     When I click on "Edit rule" "link"
     And I set the following fields to these values:
       | name                 | New Rule Quiz                                  |
@@ -153,7 +153,7 @@ Feature: tool_monitor_rule
   Scenario: Duplicate a rule on site level
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     When I click on "Duplicate rule" "link" in the "New rule site level" "table_row"
     Then I should see "Rule successfully duplicated"
     And "#toolmonitorrules_r2" "css_element" should appear after "#toolmonitorrules_r1" "css_element"
index 2766705..9b74a68 100644 (file)
@@ -20,10 +20,10 @@ Feature: tool_monitor_subscriptions
       | teacher2 | C1 | teacher |
       | teacher2 | C2 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     And I click on "Enable" "link"
     And I am on "Course 1" course homepage
-    And I navigate to "Event monitoring rules" node in "Course administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in current page administration
     And I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule course level                             |
@@ -34,7 +34,7 @@ Feature: tool_monitor_subscriptions
       | minutes              | 1                                                 |
       | Notification message | The course was viewed. {modulelink}               |
     And I press "Save changes"
-    And I navigate to "Event monitoring rules" node in "Site administration > Reports"
+    And I navigate to "Reports > Event monitoring rules" in site administration
     And I press "Add a new rule"
     And I set the following fields to these values:
       | name                 | New rule site level                               |
@@ -45,7 +45,7 @@ Feature: tool_monitor_subscriptions
       | minutes              | 1                                                 |
       | Notification message | The course was viewed. {modulelink}               |
     And I press "Save changes"
-    And I navigate to "Define roles" node in "Site administration > Users > Permissions"
+    And I navigate to "Users > Permissions > Define roles" in site administration
     And I follow "Non-editing teacher"
     And I press "Edit"
     And I click on "tool/monitor:managerules" "checkbox"
index 2b9b026..a0065c1 100644 (file)
@@ -364,7 +364,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
     And I log out
     # Create new policy document.
     And I log in as "admin"
-    And I navigate to "Manage policies" node in "Site administration > Users > Privacy and policies"
+    And I navigate to "Users > Privacy and policies > Manage policies" in site administration
     And I should see "Policies and agreements"
     And I should see "New policy"
     And I follow "New policy"
@@ -419,7 +419,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
     And I log out
     # Create new version of the policy document.
     And I log in as "admin"
-    And I navigate to "Manage policies" node in "Site administration > Users > Privacy and policies"
+    And I navigate to "Users > Privacy and policies > Manage policies" in site administration
     When I follow "Actions"
     Then I should see "View"
     And I should see "Edit"
index 7df1cb2..90af9cb 100644 (file)
@@ -57,7 +57,7 @@ Feature: Backup user data
     And I am on "Course 1" course homepage with editing mode on
     And I delete "Quiz 1" activity
     And I run all adhoc tasks
-    And I navigate to "Recycle bin" node in "Course administration"
+    And I navigate to "Recycle bin" in current page administration
     And I should see "Quiz 1"
     And I click on "Restore" "link" in the "region-main" "region"
     And I log out
index 679a0cf..5edb043 100644 (file)
@@ -48,7 +48,7 @@ Feature: Basic recycle bin functionality
       | Assignment name | Test assign |
       | Description | Test |
     And I delete "Test assign" activity
-    When I navigate to "Recycle bin" node in "Course administration"
+    When I navigate to "Recycle bin" in current page administration
     Then I should see "Test assign"
     And I should see "Contents will be permanently deleted after 7 days"
     And I click on "Restore" "link" in the "region-main" "region"
@@ -77,7 +77,7 @@ Feature: Basic recycle bin functionality
     And I go to the courses management page
     And I should see "Course 2" in the "#course-listing" "css_element"
     And I am on "Course 2" course homepage
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And I follow "Overview"
     And "Student 1" "text" should exist in the "Group A" "table_row"
     And "Student 2" "text" should exist in the "Group A" "table_row"
@@ -92,7 +92,7 @@ Feature: Basic recycle bin functionality
       | Description | Test |
     And I delete "Test assign" activity
     And I run all adhoc tasks
-    And I navigate to "Recycle bin" node in "Course administration"
+    And I navigate to "Recycle bin" in current page administration
     When I click on "Delete" "link"
     Then I should see "Are you sure you want to delete the selected item from the recycle bin?"
     And I press "Cancel"
@@ -115,7 +115,7 @@ Feature: Basic recycle bin functionality
     And I delete "Test assign 1" activity
     And I delete "Test assign 2" activity
     And I run all adhoc tasks
-    And I navigate to "Recycle bin" node in "Course administration"
+    And I navigate to "Recycle bin" in current page administration
     And I should see "Test assign 1"
     And I should see "Test assign 2"
     When I click on "Delete all" "link"
index 474468d..bfa0e8d 100644 (file)
@@ -7,7 +7,7 @@ Feature: Clear scheduled task fail delay
   Background:
     Given the scheduled task "\core\task\send_new_user_passwords_task" has a fail delay of "60" seconds
     And I log in as "admin"
-    And I navigate to "Scheduled tasks" node in "Site administration > Server"
+    And I navigate to "Server > Scheduled tasks" in site administration
 
   Scenario: Clear fail delay
     When I click on "Clear" "text" in the "Send new user passwords" "table_row"
index 73fc27d..1f0a9df 100644 (file)
@@ -6,7 +6,7 @@ Feature: Manage scheduled tasks
 
   Background:
     Given I log in as "admin"
-    And I navigate to "Scheduled tasks" node in "Site administration > Server"
+    And I navigate to "Server > Scheduled tasks" in site administration
 
   Scenario: Disable scheduled task
     When I click on "Edit task schedule: Log table cleanup" "link" in the "Log table cleanup" "table_row"
index 4740732..ed8ff3e 100644 (file)
@@ -6,7 +6,7 @@ Feature: Run tasks from web interface
 
   Scenario: Run a task
     Given I log in as "admin"
-    When I navigate to "Scheduled tasks" node in "Site administration > Server"
+    When I navigate to "Server > Scheduled tasks" in site administration
     Then I should see "Never" in the "Log table cleanup" "table_row"
 
     And I click on "Run now" "text" in the "Log table cleanup" "table_row"
@@ -21,7 +21,7 @@ Feature: Run tasks from web interface
 
   Scenario: Cancel running a task
     Given I log in as "admin"
-    When I navigate to "Scheduled tasks" node in "Site administration > Server"
+    When I navigate to "Server > Scheduled tasks" in site administration
     And I click on "Run now" "text" in the "Log table cleanup" "table_row"
     And I press "Cancel"
     # Confirm we're back on the scheduled tasks page by looking for the table.
@@ -31,5 +31,5 @@ Feature: Run tasks from web interface
     Given the following config values are set as admin:
       | enablerunnow | 0 | tool_task |
     When I log in as "admin"
-    And I navigate to "Scheduled tasks" node in "Site administration > Server"
+    And I navigate to "Server > Scheduled tasks" in site administration
     Then I should not see "Run now"
index b1e26f3..9fbfa01 100644 (file)
@@ -9,7 +9,7 @@ Feature: An admin can create courses using a CSV file
       | fullname | shortname | category |
       | First course | C1 | 0 |
     And I log in as "admin"
-    And I navigate to "Upload courses" node in "Site administration > Courses"
+    And I navigate to "Courses > Upload courses" in site administration
 
   @javascript
   Scenario: Creation of unexisting courses
index 73d2394..dbdbef5 100644 (file)
@@ -9,7 +9,7 @@ Feature: An admin can update courses using a CSV file
       | fullname | shortname | category |
       | Some random name | C1 | 0 |
     And I log in as "admin"
-    And I navigate to "Upload courses" node in "Site administration > Courses"
+    And I navigate to "Courses > Upload courses" in site administration
 
   @javascript
   Scenario: Updating a course fullname
index 1ee26f4..e7d88a3 100644 (file)
@@ -14,7 +14,7 @@ Feature: Upload users
       | Section 1 | math102 | S1 |
       | Section 3 | math102 | S3 |
     And I log in as "admin"
-    And I navigate to "Upload users" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Upload users" in site administration
     When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
     And I press "Upload users"
     Then I should see "Upload users preview"
@@ -48,7 +48,7 @@ Feature: Upload users
       | Section 1 | math102 | S1 |
       | Section 3 | math102 | S3 |
     And I log in as "admin"
-    And I navigate to "Upload users" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > Upload users" in site administration
     When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
     And I press "Upload users"
     And I set the following fields to these values:
@@ -67,19 +67,19 @@ Feature: Upload users
   Scenario: Upload users with custom profile fields
     # Create user profile field.
     Given I log in as "admin"
-    And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > User profile fields" in site administration
     And I set the field "datatype" to "Text area"
     And I set the following fields to these values:
       | Short name | superfield  |
       | Name       | Super field |
     And I click on "Save changes" "button"
     # Upload users.
-    When I navigate to "Upload users" node in "Site administration > Users > Accounts"
+    When I navigate to "Users > Accounts > Upload users" in site administration
     And I upload "lib/tests/fixtures/upload_users_profile.csv" file to "File" filemanager
     And I press "Upload users"
     And I press "Upload users"
     # Check that users were created and the superfield is filled.
-    And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > Browse list of users" in site administration
     And I follow "Tom Jones"
     And I should see "Super field"
     And I should see "The big guy"
index b08bc14..ef00bd2 100644 (file)
@@ -90,12 +90,9 @@ class behat_tool_usertours extends behat_base {
      * @Given /^I open the User tour settings page$/
      */
     public function i_open_the_user_tour_settings_page() {
-        $this->execute('behat_navigation::i_navigate_to_node_in', [
-                get_string('usertours', 'tool_usertours'),
-                implode(' > ', [
-                    get_string('administrationsite', 'moodle'),
-                    get_string('appearance', 'admin'),
-                ])
-            ]);
+        $this->execute('behat_navigation::i_navigate_to_in_site_administration',
+                get_string('appearance', 'admin') . ' > ' .
+                get_string('usertours', 'tool_usertours')
+        );
     }
 }
index 7381991..2eefea9 100644 (file)
@@ -6,7 +6,7 @@ Feature: Test validation of 'Age of digital consent' setting.
 
   Background:
     Given I log in as "admin"
-    And I navigate to "Privacy settings" node in "Site administration > Users > Privacy and policies"
+    And I navigate to "Users > Privacy and policies > Privacy settings" in site administration
 
   Scenario: Admin provides valid value for 'Age of digital consent'.
     Given I set the field "s__agedigitalconsentmap" to multiline:
index f0b8094..918251e 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit 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"
index 682f59f..816e1fe 100644 (file)
@@ -64,7 +64,7 @@ Feature: availability_profile
   Scenario: Test with custom user profile field
     # Add custom field.
     Given I log in as "admin"
-    And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > User profile fields" in site administration
     And I set the field "datatype" to "Text input"
     And I set the following fields to these values:
       | Short name | superfield  |
@@ -72,7 +72,7 @@ Feature: availability_profile
     And I click on "Save changes" "button"
 
     # Set field value for user.
-    And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > Browse list of users" in site administration
     And I click on ".icon[title=Edit]" "css_element" in the "s@example.com" "table_row"
     And I expand all fieldsets
     And I set the field "Super field" to "Bananaman"
index 32ff5d1..3330fca 100644 (file)
@@ -30,7 +30,7 @@ Feature: Option to include groups and groupings when importing a course to anoth
   Scenario: Include groups and groupings when importing a course to another course
     Given I import "Course 1" course into "Course 2" course using this options:
       | Initial | Include groups and groupings | 1 |
-    When I navigate to "Groups" node in "Course administration > Users"
+    When I navigate to "Users > Groups" in current page administration
     Then I should see "Group 1"
     And I should see "Group 2"
     And I follow "Groupings"
@@ -40,7 +40,7 @@ Feature: Option to include groups and groupings when importing a course to anoth
   Scenario: Do not include groups and groupings when importing a course to another course
     Given I import "Course 1" course into "Course 2" course using this options:
       | Initial | Include groups and groupings | 0 |
-    When I navigate to "Groups" node in "Course administration > Users"
+    When I navigate to "Users > Groups" in current page administration
     Then I should not see "Group 1"
     And I should not see "Group 2"
     And I follow "Groupings"
index d34b8d5..bd24b15 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I expand all fieldsets
     And the field "id_format" matches value "Topics format"
     And I press "Cancel"
@@ -66,7 +66,7 @@ Feature: Restore Moodle 2 course backups
     And I add a "Forum" to section "1" and I fill the form with:
       | Forum name | Test forum post backup name |
       | Description | Test forum post backup description |
-    And I navigate to "Restore" node in "Course administration"
+    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 | Section 3 | 0 |
     Then I should see "Course 1"
@@ -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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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"
@@ -170,10 +170,10 @@ Feature: Restore Moodle 2 course backups
       | Initial |  Include enrolled users | 0 |
       | Confirmation | Filename | test_backup.mbz |
     And I am on "Course 2" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    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" node in "Course administration"
+    And I navigate to "Edit 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"
@@ -199,10 +199,10 @@ Feature: Restore Moodle 2 course backups
       | Initial |  Include enrolled users | 0 |
       | Confirmation | Filename | test_backup.mbz |
     And I am on "Course 2" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    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" node in "Course administration"
+    And I navigate to "Edit 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"
@@ -228,10 +228,10 @@ Feature: Restore Moodle 2 course backups
       | Initial |  Include enrolled users | 0 |
       | Confirmation | Filename | test_backup.mbz |
     And I am on "Course 4" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    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" node in "Course administration"
+    And I navigate to "Edit 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"
index b851957..d4cf469 100644 (file)
@@ -96,11 +96,11 @@ Feature: Restore Moodle 2 course backups with different user data settings
 
   @javascript
   Scenario: Restore a backup with user data with site config for including users set to 0
-    Given I navigate to "General restore defaults" node in "Site administration > Courses > Backups"
+    Given I navigate to "Courses > Backups > General restore defaults" in site administration
     And I set the field "s_restore_restore_general_users" to ""
     And I press "Save changes"
     And I am on "Course 1" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    And I navigate to "Restore" in current page administration
     # "User data" marks the user data field for the section
     # "-" marks the user data field for the data activity
     And I restore "test_backup.mbz" backup into a new course using this options:
@@ -113,11 +113,11 @@ Feature: Restore Moodle 2 course backups with different user data settings
 
   @javascript
   Scenario: Restore a backup with user data with local and site config config for including users set to 0
-    Given I navigate to "General restore defaults" node in "Site administration > Courses > Backups"
+    Given I navigate to "Courses > Backups > General restore defaults" in site administration
     And I set the field "s_restore_restore_general_users" to ""
     And I press "Save changes"
     And I am on "Course 1" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    And I navigate to "Restore" in current page administration
     When I restore "test_backup.mbz" backup into a new course using this options:
       | Settings |  Include enrolled users | 0 |
     Then I should see "Test database name"
index d228bbc..4a3c1c2 100644 (file)
@@ -10,7 +10,7 @@ Feature: Add badges to the system
 
   @javascript
   Scenario: Setting badges settings
-    Given I navigate to "Badges settings" node in "Site administration > Badges"
+    Given I navigate to "Badges > Badges settings" in site administration
     And I set the field "Default badge issuer name" to "Test Badge Site"
     And I set the field "Default badge issuer contact details" to "testuser@example.com"
     And I press "Save changes"
@@ -24,12 +24,13 @@ Feature: Add badges to the system
     And I press "Customise this page"
    # TODO MDL-57120 site "Badges" link not accessible without navigation block.
     And I add the "Navigation" block if not present
-    Given I navigate to "Site badges" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    Given I click on "Site badges" "link" in the "Navigation" "block"
     Then I should see "There are no badges available."
 
   @javascript @_file_upload
   Scenario: Add a badge
-    Given I navigate to "Add a new badge" node in "Site administration > Badges"
+    Given I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Test badge with 'apostrophe' and other friends (<>&@#) |
       | Description | Test badge description |
index cd64b32..79ae795 100644 (file)
@@ -20,7 +20,7 @@ Feature: Award badges
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
     # Create course badge 1.
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge 1 |
@@ -37,7 +37,8 @@ Feature: Award badges
     And I press "Enable access"
     And I press "Continue"
     # Badge #2
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I am on "Course 1" course homepage
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge 2 |
@@ -72,7 +73,7 @@ Feature: Award badges
   @javascript
   Scenario: Award profile badge
     Given I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Profile Badge |
       | Description | Test badge description |
@@ -110,7 +111,7 @@ Feature: Award badges
       | teacher | teacher | 1 | teacher1@example.com |
       | student | student | 1 | student1@example.com |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -152,7 +153,7 @@ Feature: Award badges
       | student2 | C1 | student |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
@@ -194,7 +195,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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | Enable completion tracking | Yes |
     And I press "Save and display"
@@ -204,7 +205,7 @@ Feature: Award badges
       | Description | Submit your online text |
       | id_completion | 1                     |
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
@@ -243,7 +244,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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | Enable completion tracking | Yes |
     And I press "Save and display"
@@ -253,13 +254,13 @@ Feature: Award badges
       | Description | Submit your online text |
       | assignsubmission_onlinetext_enabled | 1 |
       | id_completion | 1                     |
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I set the field "id_overall_aggregation" to "2"
     And I click on "Condition: Activity completion" "link"
     And I set the field "Assignment - Test assignment name" to "1"
     And I press "Save changes"
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
@@ -309,7 +310,7 @@ Feature: Award badges
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
     # Create course badge 1.
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge 1 |
@@ -334,7 +335,8 @@ Feature: Award badges
     And I follow "Recipients (1)"
     Then I should see "Recipients (1)"
     # Add course badge 2.
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I am on "Course 1" course homepage
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge 2 |
@@ -391,7 +393,7 @@ Feature: Award badges
       | student2 | C1 | student |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
index 6f5f816..e497144 100644 (file)
@@ -19,7 +19,7 @@ Feature: Award badges based on cohort
       | user1 | CH1   |
       | user2 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -55,7 +55,7 @@ Feature: Award badges based on cohort
       | user2 | CH1   |
       | user2 | CH3   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -96,7 +96,7 @@ Feature: Award badges based on cohort
       | user3 | CH2   |
       | user3 | CH3   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -133,7 +133,7 @@ Feature: Award badges based on cohort
       | user1 | CH1   |
       | user2 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -184,7 +184,7 @@ Feature: Award badges based on cohort
       | user2 | CH2   |
       | user3 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -241,7 +241,7 @@ Feature: Award badges based on cohort
       | user2 | CH2   |
       | user2 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -298,7 +298,7 @@ Feature: Award badges based on cohort
       | user2 | CH1   |
       | user3 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
@@ -356,7 +356,7 @@ Feature: Award badges based on cohort
       | user1 | CH2   |
       | user2 | CH2   |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge 1 |
       | Description | Site badge description |
@@ -369,7 +369,7 @@ Feature: Award badges based on cohort
     And I press "Enable access"
     When I press "Continue"
     And I should see "Recipients (1)"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge 2 |
       | Description | Site badge description |
@@ -411,7 +411,7 @@ Feature: Award badges based on cohort
       | user2    | Second    | User     | second@example.com |
       | user3    | Third     | User     | third@example.com  |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge 1 |
       | Description | Site badge description |
@@ -426,7 +426,7 @@ Feature: Award badges based on cohort
     And I press "Enable access"
     When I press "Continue"
     And I should see "Recipients (0)"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge 2 |
       | Description | Site badge description |
@@ -440,7 +440,7 @@ Feature: Award badges based on cohort
     And I press "Save"
     And I press "Enable access"
     And I press "Continue"
-    Then I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    Then I navigate to "Users > Accounts >Cohorts" in site administration
     And I add "First User (first@example.com)" user to "CH1" cohort members
     And I add "First User (first@example.com)" user to "CH2" cohort members
     And I add "Second User (second@example.com)" user to "CH2" cohort members
index abdb166..14cc5b5 100644 (file)
@@ -10,7 +10,7 @@ Feature: Award badges based on user profile field
       | username | firstname | lastname | email           |
       | user1    | First     | User     | first@example.com  |
     And I log in as "admin"
-    And I navigate to "Add a new badge" node in "Site administration > Badges"
+    And I navigate to "Badges > Add a new badge" in site administration
     And I set the following fields to these values:
       | Name | Site Badge |
       | Description | Site badge description |
index bb3a49d..e89489b 100644 (file)
@@ -21,7 +21,7 @@ Feature: Test role visibility for the badge administration page
   Scenario: Check the default roles are visible
     Given I log in as "manager1"
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
@@ -37,7 +37,7 @@ Feature: Test role visibility for the badge administration page
   Scenario: Check hidden roles are not visible
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I follow "Add a new badge"
     And I set the following fields to these values:
       | Name | Course Badge |
index 1574fe8..faa02a4 100644 (file)
@@ -6,14 +6,14 @@ Feature: Add a bookmarks to an admin pages
 
   Background:
     Given I log in as "admin"
-    And I navigate to "Scheduled tasks" node in "Site administration > Server"
+    And I navigate to "Server > Scheduled tasks" in site administration
     And I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
     And I log out
 
   # Test bookmark functionality using the "User profile fields" page as our bookmark.
   Scenario: Admin page can be bookmarked
     Given I log in as "admin"
-    And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > User profile fields" in site administration
     When I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
     Then I should see "User profile fields" in the "Admin bookmarks" "block"
     # See the existing bookmark is there too.
@@ -21,14 +21,14 @@ Feature: Add a bookmarks to an admin pages
 
   Scenario: Admin page can be accessed through bookmarks block
     Given I log in as "admin"
-    And I navigate to "Notifications" node in "Site administration"
+    And I navigate to "Notifications" in site administration
     And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
     # Verify that we are on the right page.
     Then I should see "Scheduled tasks" in the "h1" "css_element"
 
   Scenario: Admin page can be removed from bookmarks
     Given I log in as "admin"
-    And I navigate to "Notifications" node in "Site administration"
+    And I navigate to "Notifications" in site administration
     And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
     When I click on "Unbookmark this page" "link" in the "Admin bookmarks" "block"
     Then I should see "Bookmark deleted"
index 33fe576..cc739af 100644 (file)
@@ -17,7 +17,7 @@ Feature: Enable Block Badges in a course
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
     # Issue badge 1 of 2
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I set the following fields to these values:
       | id_name | Badge 1 |
       | id_description | Badge 1 |
@@ -34,7 +34,8 @@ Feature: Enable Block Badges in a course
     And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
     And I press "Award badge"
     # Issue Badge 2 of 2
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I am on "Course 1" course homepage
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I set the following fields to these values:
       | id_name | Badge 2 |
       | id_description | Badge 2 |
index 2928bf3..45d10c7 100644 (file)
@@ -17,7 +17,7 @@ Feature: Enable Block Badges on the dashboard and view awarded badges
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
     # Issue badge 1 of 2
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I set the following fields to these values:
       | id_name | Badge 1 |
       | id_description | Badge 1 |
index d1daf80..89a99de 100644 (file)
@@ -16,13 +16,13 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Latest badges" block
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
     # Issue badge 1 of 2
-    And I navigate to "Add a new badge" node in "Course administration > Badges"
+    And I navigate to "Badges > Add a new badge" in current page administration
     And I set the following fields to these values:
       | id_name | Badge 1 |
       | id_description | Badge 1 |
index 3c2936a..8e1df82 100644 (file)
@@ -10,7 +10,7 @@ Feature: Enable Block blog menu on the frontpage
       | student1 | Student | 1 | student1@example.com | S1 |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Blog menu" block
     And I log out
 
index 3b838df..3864042 100644 (file)
@@ -10,7 +10,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
       | student1 | Student | 1 | student1@example.com | S1 |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Recent blog entries" block
     # TODO MDL-57120 site "Blogs" link not accessible without navigation block.
     And I add the "Navigation" block if not present
@@ -19,7 +19,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
   Scenario: Students use the recent blog entries block to view blogs
     Given I log in as "student1"
     And I am on site homepage
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Add a new entry"
     When I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -35,7 +35,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
   Scenario: Students only see a few entries in the recent blog entries block
     Given I log in as "student1"
     And I am on site homepage
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Add a new entry"
     # Blog 1 of 5
     And I set the following fields to these values:
@@ -89,7 +89,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
     Then I log out
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I configure the "Recent blog entries" block
     And I set the following fields to these values:
       | id_config_numberofrecentblogentries | 2 |
index bc34346..f8f1597 100644 (file)
@@ -129,7 +129,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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | id_groupmode | Separate groups |
       | id_groupmodeforce | Yes |
@@ -167,7 +167,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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | id_groupmode | Separate groups |
       | id_groupmodeforce | Yes |
index 448b710..dd31e37 100644 (file)
@@ -16,7 +16,7 @@ Feature: View a site event on the frontpage
       | id_eventtype | Site |
       | id_name | My Site Event |
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Upcoming events" block
     And I log out
     When I log in as "teacher1"
index 5d949ab..6b883f2 100644 (file)
@@ -10,7 +10,7 @@ Feature: Enable Block comments on the frontpage and view comments
       | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Comments" block
     And I follow "Show comments"
     And I add "I'm a comment from admin" comment to comments block
index f5e24a1..318be30 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | Enable completion tracking | No |
     And I press "Save and display"
@@ -46,7 +46,7 @@ Feature: Enable Block Completion in a course
       | Require view | 1 |
     And I press "Save and return to course"
     When I add the "Course completion status" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | Test page name | 1 |
index d41fe98..397afe0 100644 (file)
@@ -30,7 +30,7 @@ Feature: Enable Block Completion in a course using activity completion
       | Require view | 1 |
     And I press "Save and return to course"
     And I add the "Course completion status" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | Test page name | 1 |
@@ -51,7 +51,7 @@ Feature: Enable Block Completion in a course using activity completion
       | Require view | 1 |
     And I press "Save and return to course"
     And I add the "Course completion status" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | Test page name | 1 |
index c021914..ebe242f 100644 (file)
@@ -23,7 +23,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | Teacher | 1 |
@@ -36,7 +36,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Course completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Course completion" in current page administration
     And I follow "Click to mark user complete"
     # Running completion task just after clicking sometimes fail, as record
     # should be created before the task runs.
@@ -55,7 +55,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | Teacher             | 1 |
@@ -71,7 +71,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Course completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Course completion" in current page administration
     And I follow "Click to mark user complete"
     And I log out
     And I log in as "student1"
@@ -85,7 +85,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I log out
     And I log in as "teacher2"
     And I am on "Course 1" course homepage
-    And I navigate to "Course completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Course completion" in current page administration
     And I follow "Click to mark user complete"
     # Running completion task just after clicking sometimes fail, as record
     # should be created before the task runs.
index d9b73c5..32a30ef 100644 (file)
@@ -20,7 +20,7 @@ Feature: Enable Block Completion in a course using manual self completion
     And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
     And I add the "Self completion" block
-    And I navigate to "Course completion" node in "Course administration"
+    And I navigate to "Course completion" in current page administration
     And I expand all fieldsets
     And I set the following fields to these values:
       | id_criteria_self | 1 |
index b10cf27..93dfa54 100644 (file)
@@ -28,7 +28,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
   Scenario: Add the course list block on the frontpage and navigate to the course listing
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Courses" block
     And I log out
     When I log in as "teacher1"
@@ -43,7 +43,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
   Scenario: Add the course list block on the frontpage page and navigate to another course
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Courses" block
     And I log out
     When I log in as "teacher1"
@@ -58,7 +58,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
   Scenario: Add the course list block on the frontpage page and view as an admin
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     When I add the "Courses" block
     Then I should see "Miscellaneous" in the "Course categories" "block"
     And I should see "Category 1" in the "Course categories" "block"
@@ -72,7 +72,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
   Scenario: Add the course list block on the frontpage page and view as a guest
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Courses" block
     And I log out
     When I log in as "guest"
index a48fb70..ac91d6d 100644 (file)
@@ -9,7 +9,7 @@ Feature: Course summary block used on the frontpage
     And I am on site homepage
     And I turn editing mode on
     And I add the "Course/site summary" block
-    And I navigate to "Edit settings" node in "Front page settings"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | summary | Proved the summary block works! |
     And I press "Save changes"
index caaa06b..2f86023 100644 (file)
@@ -10,7 +10,7 @@ Feature: Login from a block
       | testuser | testpass | Test      | User     | student1@example.com |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Login" block
 
   Scenario: Login block visible to non-logged in users
index 5b14df3..1e67078 100644 (file)
@@ -10,7 +10,7 @@ Feature: The logged in user block allows users to view their profile information
       | teacher1 | Teacher   | One      | teacher1@example.com | T1       |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Logged in user" block
     And I log out
 
index 683c34a..b63a587 100644 (file)
@@ -46,7 +46,7 @@ Feature: Expand the courses nodes within the navigation block
     And I press "Save changes"
     And I turn editing mode off
     And I am on "Course 2" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I click on "Edit" "link" in the "Guest access" "table_row"
     And I set the following fields to these values:
       | Allow guest access | Yes |
index 0c5bbdd..097c9e7 100644 (file)
@@ -13,7 +13,7 @@ Feature: The online users block allow you to see who is currently online on fron
   Scenario: View the online users block on the front page and see myself
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     When I add the "Online users" block
     Then I should see "Admin User" in the "Online users" "block"
     And I should see "1 online user" in the "Online users" "block"
@@ -21,7 +21,7 @@ Feature: The online users block allow you to see who is currently online on fron
   Scenario: View the online users block on the front page as a logged in user
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Online users" block
     And I log out
     And I log in as "student2"
@@ -36,7 +36,7 @@ Feature: The online users block allow you to see who is currently online on fron
   Scenario: View the online users block on the front page as a guest
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Online users" block
     And I log out
     And I log in as "student2"
@@ -54,7 +54,7 @@ Feature: The online users block allow you to see who is currently online on fron
   Scenario: Hide/show user's online status from/to other users in the online users block on front page
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Online users" block
     And I log out
     When I log in as "student1"
index 93b6a57..3e47bd2 100644 (file)
@@ -10,7 +10,7 @@ Feature: People Block used on frontpage
       | student1    | Sam       | Student  | student1@example.com |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "People" block
     And I log out
 
index 7816060..0e79d0a 100644 (file)
@@ -13,7 +13,7 @@ Feature: The private files block allows users to store files privately in moodle
       | teacher1 | Teacher | 1 | teacher1@example.com |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Private files" block
     And I log out
 
index e2e37d2..dfdeb6f 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit 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
index 1f76d15..53f3ba9 100644 (file)
@@ -10,7 +10,7 @@ Feature: The search forums block allows users to search for forum posts on front
       | student1 | Student | 1 | student1@example.com | S1 |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Search forums" block
     And I log out
 
index a9cfb61..dbd6386 100644 (file)
@@ -8,7 +8,7 @@ Feature: Add URL to main menu block
   Scenario: Add a URL in menu block and ensure it appears
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Main menu" block
     When I add a "URL" to section "0" and I fill the form with:
       | Name | google |
index c577b9f..3b5d632 100644 (file)
@@ -8,7 +8,7 @@ Feature: Edit activities in main menu block
   Scenario: Edit name of acitivity in-place in site main menu block
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Main menu" block
     When I add a "Forum" to section "0" and I fill the form with:
       | Forum name | My forum name |
@@ -27,7 +27,7 @@ Feature: Edit activities in main menu block
     And I set the following administration settings values:
       | allowstealth | 1 |
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
     And I add the "Main menu" block
     When I add a "Forum" to section "0" and I fill the form with:
       | Forum name | Visible forum |
@@ -60,7 +60,7 @@ Feature: Edit activities in main menu block
     And the field "Availability" matches value "Make available but not shown on course page"
     And I press "Save and return to course"
     And "My forum name" activity in site main menu block should be available but hidden from course page
-    And I navigate to "Turn editing off" node in "Front page settings"
+    And I navigate to "Turn editing off" in current page administration
     And "My forum name" activity in site main menu block should be available but hidden from course page
     And I log out
     And I should not see "My forum name" in the "Main menu" "block"
index f213f66..c927827 100644 (file)
@@ -10,7 +10,8 @@ Feature: Adding and configuring Flickr block
     And I press "Customise this page"
     # TODO MDL-57120 site "Tags" link not accessible without navigation block.
     And I add the "Navigation" block if not present
-    And I navigate to "Tags" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Tags" "link" in the "Navigation" "block"
     And I add the "Flickr" block
     And I configure the "Flickr" block
     Then I should see "Flickr block title"
index 84fefa7..3df500d 100644 (file)
@@ -20,7 +20,7 @@ Feature: Add and configure blocks throughout the site
       | manager1 | Acceptance test site | manager |
     # Allow at least one role assignment in the block context:
     And I log in as "admin"
-    And I navigate to "Define roles" node in "Site administration > Users > Permissions"
+    And I navigate to "Users > Permissions > Define roles" in site administration
     And I follow "Edit Non-editing teacher role"
     And I set the following fields to these values:
       | Block | 1 |
index f4bae30..ce213bd 100644 (file)
@@ -18,7 +18,7 @@ Feature: Blogs can be set to be only visible by the author.
       | testuser2 | C1     | student |
     And I log in as "admin"
     And I am on site homepage
-    And I navigate to "Blog" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Blog" in site administration
     And I set the following fields to these values:
       | Blog visibility | Users can only see their own blog |
     And I press "Save changes"
index 86099b0..456ac5d 100644 (file)
@@ -20,7 +20,8 @@ Feature: Comment on a blog entry
     And I press "Save changes"
     And I log out
     And I log in as "testuser"
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | Blog post from user 1 |
@@ -32,7 +33,8 @@ Feature: Comment on a blog entry
   Scenario: Commenting on my own blog entry
     Given I am on site homepage
     And I log in as "testuser"
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Blog post from user 1"
     And I should see "User 1 blog post content"
     And I follow "Comments (0)"
@@ -47,7 +49,8 @@ Feature: Comment on a blog entry
   Scenario: Deleting my own comment
     Given I am on site homepage
     And I log in as "testuser"
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Blog post from user 1"
     And I should see "User 1 blog post content"
     And I follow "Comments (0)"
@@ -67,7 +70,8 @@ Feature: Comment on a blog entry
     Given I am on site homepage
     And I log in as "testuser2"
     And I am on site homepage
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Blog post from user 1"
     When I follow "Comments (0)"
     And I set the field "content" to "$My own >nasty< \"string\"!"
index 950577b..0119820 100644 (file)
@@ -19,7 +19,7 @@ Feature: Delete a blog entry
     And I press "Save changes"
     And I log out
     And I log in as "testuser"
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | Blog post one |
@@ -31,7 +31,7 @@ Feature: Delete a blog entry
       | Blog entry body | User 1 blog post content |
     And I press "Save changes"
     And I am on site homepage
-    And I navigate to "Site blogs" node in "Site pages"
+    And I click on "Site blogs" "link" in the "Navigation" "block"
 
   Scenario: Delete blog post results in post deleted
     Given I follow "Blog post one"
index 17a4538..5382c8f 100644 (file)
@@ -67,7 +67,11 @@ Feature: Course Category Events
   @javascript
   Scenario: Manager of a Category can see all child and parent events in their category
     Given I log in as "managera"
-    When I navigate to "Calendar" node in "Site pages"
+    And I press "Customise this page"
+    # TODO MDL-57120 site "Tags" link not accessible without navigation block.
+    When I add the "Navigation" block if not present
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Calendar" "link" in the "Navigation" "block"
     Then I should see "FA event"
     And  I should see "DA1 event"
     And  I should see "DA2 event"
@@ -76,7 +80,11 @@ Feature: Course Category Events
     And  I should not see "DB2 event"
     And  I log out
     Given I log in as "managerb"
-    When I navigate to "Calendar" node in "Site pages"
+    And I press "Customise this page"
+    # TODO MDL-57120 site "Tags" link not accessible without navigation block.
+    When I add the "Navigation" block if not present
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Calendar" "link" in the "Navigation" "block"
     Then I should see "FB event"
     And  I should see "DB1 event"
     And  I should see "DB2 event"
@@ -87,7 +95,11 @@ Feature: Course Category Events
   @javascript
   Scenario: Users enrolled in a course can see all child and parent events in their category
     Given I log in as "student1"
-    When I navigate to "Calendar" node in "Site pages"
+    And I press "Customise this page"
+    # TODO MDL-57120 site "Tags" link not accessible without navigation block.
+    When I add the "Navigation" block if not present
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Calendar" "link" in the "Navigation" "block"
     Then I should see "FA event"
     And  I should see "DA1 event"
     And  I should see "DA2 event"
index 203673b..5ee8c95 100644 (file)
@@ -48,7 +48,7 @@ Feature: Access visible and hidden cohorts
   Scenario: Teacher can see visible cohorts defined in the above contexts
     When I log in as "teacher"
     And I am on "Course 1" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I select "Cohort sync" from the "Add method" singleselect
     And I open the autocomplete suggestions list
     Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -61,10 +61,10 @@ Feature: Access visible and hidden cohorts
     And I set the field "Cohort" to "System cohort"
     And I press "Add method"
     And I am on "Course 1" course homepage
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I navigate to "Users > Enrolled users" in current page administration
     And I should see "student@example.com"
     And I am on "Course 1" course homepage
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And I press "Auto-create groups"
     And the "Select members from cohort" select box should contain "Cohort in category 1"
     And the "Select members from cohort" select box should contain "System cohort"
@@ -78,7 +78,7 @@ Feature: Access visible and hidden cohorts
   Scenario: System manager can see all cohorts defined in the above contexts
     When I log in as "user1"
     And I am on "Course 1" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I select "Cohort sync" from the "Add method" singleselect
     And I open the autocomplete suggestions list
     Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -90,9 +90,10 @@ Feature: Access visible and hidden cohorts
     And "System empty cohort" "autocomplete_suggestions" should exist
     And I set the field "Cohort" to "System cohort"
     And I press "Add method"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 1" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     And I should see "student@example.com"
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And I press "Auto-create groups"
     And the "Select members from cohort" select box should contain "Cohort in category 1"
     And the "Select members from cohort" select box should contain "System cohort"
@@ -106,7 +107,7 @@ Feature: Access visible and hidden cohorts
   Scenario: Category manager can see all cohorts defined in his category and visible cohorts defined above
     When I log in as "user2"
     And I am on "Course 1" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I select "Cohort sync" from the "Add method" singleselect
     And I open the autocomplete suggestions list
     Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -118,9 +119,10 @@ Feature: Access visible and hidden cohorts
     And "System empty cohort" "autocomplete_suggestions" should exist
     And I set the field "Cohort" to "System cohort"
     And I press "Add method"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 1" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     And I should see "student@example.com"
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And I press "Auto-create groups"
     And the "Select members from cohort" select box should contain "Cohort in category 1"
     And the "Select members from cohort" select box should contain "System cohort"
index 7d21b98..1a5955d 100644 (file)
@@ -12,7 +12,7 @@ Feature: Add cohorts of users
       | user3 | Third | User | third@example.com |
       | user4 | Forth | User | forth@example.com |
     And I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Add new cohort"
     And I set the following fields to these values:
       | Name | Test cohort name |
index aad2b9c..1c375db 100644 (file)
@@ -50,13 +50,12 @@ class behat_cohort extends behat_base {
         if (!$this->getSession()->getPage()->find('css', 'input#cohort_search_q')) {
 
             // With JS enabled we should expand a few tree nodes.
-            $parentnodes = get_string('administrationsite') . ' > ' .
-                get_string('users', 'admin') . ' > ' .
+            $parentnodes = get_string('users', 'admin') . ' > ' .
                 get_string('accounts', 'admin');
 
             $this->execute("behat_general::i_am_on_homepage");
-            $this->execute("behat_navigation::i_navigate_to_node_in",
-                array(get_string('cohorts', 'cohort'), $parentnodes)
+            $this->execute("behat_navigation::i_navigate_to_in_site_administration",
+                $parentnodes . ' > ' . get_string('cohorts', 'cohort')
             );
         }
 
index 1b1edb4..77d7f91 100644 (file)
@@ -21,7 +21,7 @@ Feature: Upload users to a cohort
     And I am on "Course 2" course homepage
     And I add "Cohort sync" enrolment method with:
       | Cohort | Cohort 2 |
-    When I navigate to "Upload users" node in "Site administration > Users > Accounts"
+    When I navigate to "Users > Accounts > Upload users" in site administration
     And I upload "lib/tests/fixtures/upload_users_cohorts.csv" file to "File" filemanager
     And I press "Upload users"
     And I press "Upload users"
index 2cc5074..73ef61d 100644 (file)
@@ -14,7 +14,7 @@ Feature: A privileged user can create cohorts using a CSV file
   @javascript
   Scenario: Upload cohorts with default System context as admin
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Upload cohorts"
     And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
     And I click on "Preview" "button"
@@ -53,7 +53,7 @@ Feature: A privileged user can create cohorts using a CSV file
   @javascript @_file_upload
   Scenario: Upload cohorts with default category context as admin
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Upload cohorts"
     And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
     And I set the field "Default context" to "Cat 1 / Cat 3"
@@ -70,7 +70,7 @@ Feature: A privileged user can create cohorts using a CSV file
     And I should see "Uploaded 6 cohorts"
     And I press "Continue"
     And I should see "Category: Cat 3: available cohorts (3)"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "All cohorts"
     And the following should exist in the "cohorts" table:
       | Category      | Name          | Cohort ID | Description       | Cohort size | Source           |
@@ -113,7 +113,7 @@ Feature: A privileged user can create cohorts using a CSV file
       | name   | idnumber  |
       | Cohort | cohortid2 |
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Upload cohorts"
     And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
     And I click on "Preview" "button"
@@ -131,7 +131,7 @@ Feature: A privileged user can create cohorts using a CSV file
   @javascript @_file_upload
   Scenario: Upload cohorts with different ways of specifying context
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Upload cohorts"
     And I upload "cohort/tests/fixtures/uploadcohorts2.csv" file to "File" filemanager
     And I click on "Preview" "button"
@@ -165,7 +165,7 @@ Feature: A privileged user can create cohorts using a CSV file
   @javascript @_file_upload
   Scenario: Upload cohorts with theme
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     And I follow "Upload cohorts"
     And I upload "cohort/tests/fixtures/uploadcohorts4.csv" file to "File" filemanager
     And I click on "Preview" "button"
index f970701..b901cc2 100644 (file)
@@ -29,7 +29,7 @@ Feature: View cohort list
 
   Scenario: Admin can see system cohorts and all cohorts
     When I log in as "admin"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     Then I should see "System cohort"
     And I should not see "Cohort in category"
     And I follow "All cohorts"
@@ -41,7 +41,7 @@ Feature: View cohort list
 
   Scenario: Manager can see system cohorts and all cohorts
     When I log in as "user1"
-    And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts >Cohorts" in site administration
     Then I should see "System cohort"
     And I should not see "Cohort in category"
     And I follow "All cohorts"
index 61582ab..296f92e 100644 (file)
@@ -84,9 +84,10 @@ class behat_completion extends behat_base {
      */
     public function go_to_the_current_course_activity_completion_report() {
         $completionnode = get_string('pluginname', 'report_progress');
-        $reportsnode = get_string('courseadministration') . ' > ' . get_string('reports');
+        $reportsnode = get_string('reports');
 
-        $this->execute("behat_navigation::i_navigate_to_node_in", array($completionnode, $reportsnode));
+        $this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
+                $reportsnode . ' > ' . $completionnode);
     }
 
     /**
index 6ba1be4..f6b0826 100644 (file)
@@ -36,5 +36,4 @@ Feature: Allow students to manually mark an activity as complete
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Reports > Activity completion" in current page administration
     And "Student First" user has completed "Test forum name" activity
index 52f4354..48b5609 100644 (file)
@@ -135,14 +135,14 @@ class behat_course extends behat_base {
      */
     public function i_go_to_the_courses_management_page() {
 
-        $parentnodes = get_string('administrationsite') . ' > ' . get_string('courses', 'admin');
+        $parentnodes = get_string('courses', 'admin');
 
         // Go to home page.
         $this->execute("behat_general::i_am_on_homepage");
 
-        // Navigate to course management page via navigation block.
-        $this->execute("behat_navigation::i_navigate_to_node_in",
-            array(get_string('coursemgmt', 'admin'), $parentnodes)
+        // Navigate to course management via system administration.
+        $this->execute("behat_navigation::i_navigate_to_in_site_administration",
+            array($parentnodes . ' > ' . get_string('coursemgmt', 'admin'))
         );
 
     }
index 62ccbed..0883b52 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I expand all fieldsets
     Then I should see "Mathematics" in the ".form-autocomplete-selection" "css_element"
     And I set the following fields to these values:
       | Tags | Algebra |
     And I press "Save and display"
     And I am on "Course 2" course homepage
-    And I navigate to "Edit settings" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | Tags | Mathematics, Geometry |
     And I press "Save and display"
@@ -50,7 +50,8 @@ Feature: Tagging courses
     And I press "Customise this page"
     # TODO MDL-57120 "Tags" link not accessible without navigation block.
     And I add the "Navigation" block if not present
-    And I navigate to "Tags" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Tags" "link" in the "Navigation" "block"
     And I follow "Mathematics"
     Then I should see "Course 1"
     And I should see "Course 2"
@@ -86,7 +87,8 @@ Feature: Tagging courses
     And I press "Customise this page"
     # TODO MDL-57120 "Tags" link not accessible without navigation block.
     And I add the "Navigation" block if not present
-    And I navigate to "Tags" node in "Site pages"
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    And I click on "Tags" "link" in the "Navigation" "block"
     And I follow "Mathematics"
     Then I should see "Course 1"
     And I should see "Course 2"
index 41e4570..604f894 100644 (file)
@@ -8,7 +8,7 @@ Feature: Keyholder role is listed as course contact
     And the following "categories" exist:
       | name | category | idnumber |
       | Cat 1 | 0 | CAT1 |
-    And I navigate to "Define roles" node in "Site administration > Users > Permissions"
+    And I navigate to "Users > Permissions > Define roles" in site administration
     And I click on "Add a new role" "button"
     And I click on "Continue" "button"
     And I set the following fields to these values:
@@ -18,7 +18,7 @@ Feature: Keyholder role is listed as course contact
     | contextlevel50 | 1 |
     | enrol/self:holdkey | 1 |
     And I click on "Create this role" "button"
-    And I navigate to "Courses" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Courses" in site administration
     And I click on "Keyholder" "checkbox"
     And I press "Save changes"
     And the following "users" exist:
index 8e05e50..f337be1 100644 (file)
@@ -12,7 +12,7 @@ Feature: The maximum number of weeks/topics in a course can be configured
       | user | course | role |
       | manager1 | Acceptance test site | manager |
     And I log in as "admin"
-    And I navigate to "Course default settings" node in "Site administration >  Courses"
+    And I navigate to "Courses > Course default settings" in site administration
 
   @javascript
   Scenario: The number of sections can be increased and the limits are applied to courses
index d4b7f3d..d9a389d 100644 (file)
@@ -26,7 +26,7 @@ Feature: Rename roles in a course
       | Your word for 'Teacher' | Lecturer |
       | Your word for 'Student' | Learner  |
     And I press "Save and display"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "Lecturer" in the "Teacher 1" "table_row"
     And I should see "Learner" in the "Student 1" "table_row"
 
index 1b05008..af6c0f7 100644 (file)
@@ -22,7 +22,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
       | Description | Test forum description |
 
   Scenario: Allow guest access without password
-    Given I navigate to "Enrolment methods" node in "Course administration > Users"
+    Given I navigate to "Users > Enrolment methods" in current page administration
     And I click on "Edit" "link" in the "Guest access" "table_row"
     And I set the following fields to these values:
       | Allow guest access | Yes |
@@ -34,7 +34,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
     Then I should not see "Subscribe to this forum"
 
   Scenario: Allow guest access with password
-    Given I navigate to "Enrolment methods" node in "Course administration > Users"
+    Given I navigate to "Users > Enrolment methods" in current page administration
     And I click on "Edit" "link" in the "Guest access" "table_row"
     And I set the following fields to these values:
       | Allow guest access | Yes |
index fe6337e..40cfc3e 100644 (file)
@@ -16,9 +16,9 @@ Feature: Check that settings are adhered to when creating an enrolment plugin
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
+    And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
     And I click on "Enable" "link" in the "Publish as LTI tool" "table_row"
-    And I navigate to "Publish as LTI tool" node in "Site administration > Plugins > Enrolments"
+    And I navigate to "Plugins > Enrolments > Publish as LTI tool" in site administration
     And I set the following fields to these values:
       | Email display       | Allow everyone to see my email address |
       | City/town           | Perth                                  |
@@ -31,7 +31,7 @@ Feature: Check that settings are adhered to when creating an enrolment plugin
   Scenario: As an admin set site-wide settings for the enrolment plugin and ensure they are used
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I select "Publish as LTI tool" from the "Add method" singleselect
     When I expand all fieldsets
     Then the field "Email display" matches value "Allow everyone to see my email address"
index 0f7d81c..3792032 100644 (file)
@@ -15,7 +15,7 @@ Feature: Check that the page listing the shared external tools is functioning as
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
+    And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
     And I click on "Enable" "link" in the "Publish as LTI tool" "table_row"
     And I log out
 
@@ -25,13 +25,12 @@ Feature: Check that the page listing the shared external tools is functioning as
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment name |
       | Description | Submit your online text |
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     And I select "Publish as LTI tool" from the "Add method" singleselect
     And I set the following fields to these values:
       | Custom instance name | Assignment - LTI |
       | Tool to be published | Test assignment name |
     And I press "Add method"
-    And I navigate to "Published as LTI tools" node in "Course administration"
     And I should see "Assignment - LTI" in the ".generaltable" "css_element"
     When I click on "Disable" "link" in the "Assignment - LTI" "table_row"
     Then ".dimmed_text" "css_element" should exist in the "Assignment - LTI" "table_row"
index 8b6cf0b..6ed84e4 100644 (file)
@@ -32,7 +32,7 @@ Feature: Enrolments are synchronised with meta courses
       | student1 | C4C4 | student | 0 |
       | student2 | C4C4 | student | 1 |
     And I log in as "admin"
-    And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
+    And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
     And I click on "Enable" "link" in the "Course meta link" "table_row"
     And I am on course index
 
@@ -40,7 +40,8 @@ Feature: Enrolments are synchronised with meta courses
     When I am on "Course 3" course homepage
     And I add "Course meta link" enrolment method with:
       | Link course  | C1C1 |
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 3" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "No groups" in the "Student 1" "table_row"
     And I should see "No groups" in the "Student 4" "table_row"
 
@@ -53,7 +54,8 @@ Feature: Enrolments are synchronised with meta courses
     And I add "Course meta link" enrolment method with:
       | Link course  | C2C2      |
       | Add to group | Groupcourse 2 |
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 3" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "Groupcourse 1" in the "Student 1" "table_row"
     And I should see "Groupcourse 1" in the "Student 2" "table_row"
     And I should see "Groupcourse 1" in the "Student 3" "table_row"
@@ -68,12 +70,13 @@ Feature: Enrolments are synchronised with meta courses
     And I add "Course meta link" enrolment method with:
       | Link course  | C1C1      |
       | Add to group | Create new group |
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 3" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "Course 1 course" in the "Student 1" "table_row"
     And I should see "Course 1 course" in the "Student 2" "table_row"
     And I should see "Course 1 course" in the "Student 3" "table_row"
     And I should see "Course 1 course" in the "Student 4" "table_row"
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And the "Groups" select box should contain "Course 1 course (4)"
 
   Scenario: Backup and restore of meta enrolment instance
@@ -96,10 +99,11 @@ Feature: Enrolments are synchronised with meta courses
     And I press "Perform restore"
     And I trigger cron
     And I am on "Course 5 copy 1" course homepage
-    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I navigate to "Users > Enrolment methods" in current page administration
     Then I should see "Course meta link (Course 1)"
     And I should see "Course meta link (Course 2)"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 5 copy 1" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     And I should see "Groupcourse 1" in the "Student 1" "table_row"
     And I should see "Groupcourse 1" in the "Student 2" "table_row"
     And I should see "Groupcourse 1" in the "Student 3" "table_row"
index c9cd9d4..eae9dd4 100644 (file)
@@ -13,7 +13,7 @@ Feature: Users can be defined as key holders in courses where self enrolment is
       | fullname | shortname | format |
       | Course 1 | C1 | topics |
     And I log in as "admin"
-    And I navigate to "Define roles" node in "Site administration > Users > Permissions"
+    And I navigate to "Users > Permissions > Define roles" in site administration
     And I click on "Add a new role" "button"
     And I click on "Continue" "button"
     And I set the following fields to these values:
@@ -22,7 +22,7 @@ Feature: Users can be defined as key holders in courses where self enrolment is
       | contextlevel50 | 1 |
       | enrol/self:holdkey | 1 |
     And I click on "Create this role" "button"
-    And I navigate to "Courses" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Courses" in site administration
     And I set the following fields to these values:
       | Key holder | 1 |
     And I press "Save changes"
index 1cde57b..bd48efc 100644 (file)
@@ -48,9 +48,9 @@ class behat_enrol extends behat_base {
      */
     public function i_add_enrolment_method_with($enrolmethod, TableNode $table) {
         // Navigate to enrolment method page.
-        $parentnodes = get_string('courseadministration') . ' > ' . get_string('users', 'admin');
-        $this->execute("behat_navigation::i_navigate_to_node_in",
-            array(get_string('type_enrol_plural', 'plugin'), $parentnodes)
+        $parentnodes = get_string('users', 'admin');
+        $this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
+            array($parentnodes .' > '. get_string('type_enrol_plural', 'plugin'))
         );
 
         // Select enrolment method.
@@ -87,9 +87,9 @@ class behat_enrol extends behat_base {
     public function i_enrol_user_as($userfullname, $rolename) {
 
         // Navigate to enrolment page.
-        $parentnodes = get_string('courseadministration') . ' > ' . get_string('users', 'admin');
-        $this->execute("behat_navigation::i_navigate_to_node_in",
-            array(get_string('enrolledusers', 'enrol'), $parentnodes)
+        $parentnodes = get_string('users', 'admin');
+        $this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
+            array($parentnodes . ' > '. get_string('enrolledusers', 'enrol'))
         );
 
         $this->execute("behat_forms::press_button", get_string('enrolusers', 'enrol'));
index 294ee58..9cf5313 100644 (file)
@@ -16,11 +16,12 @@ Feature: User can be enrolled into a course
 
   Scenario: User can be enrolled without javascript
     When I enrol "Studie One" user as "Student"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 001" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "Studie One"
 
   @javascript
   Scenario: User can be enrolled with javascript enrol element
     When I enrol "Studie One" user as "Student"
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I navigate to "Users > Enrolled users" in current page administration
     Then I should see "Studie One"
index 7c8d911..9e42d55 100644 (file)
@@ -22,7 +22,7 @@ Feature: Test role visibility for the participants page
   Scenario: Check the default roles are visible
     Given I log in as "manager1"
     And I follow "Course 1"
-    When I navigate to "Enrolled users" node in "Course administration > Users"
+    When I navigate to "Users > Enrolled users" in current page administration
     Then "Learner 1" row "Roles" column of "participants" table should contain "Student"
     And "Teacher 1" row "Roles" column of "participants" table should contain "Teacher"
     And "Manager 1" row "Roles" column of "participants" table should contain "Manager"
@@ -31,7 +31,7 @@ Feature: Test role visibility for the participants page
   Scenario: Do not allow managers to view any roles but manager and check they are hidden
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    When I navigate to "Enrolled users" node in "Course administration > Users"
+    When I navigate to "Users > Enrolled users" in current page administration
     Then "Learner 1" row "Roles" column of "participants" table should contain "Student"
     And "Teacher 1" row "Roles" column of "participants" table should contain "Teacher"
     And "Manager 1" row "Roles" column of "participants" table should not contain "Manager"
index 59f1773..7eca2c7 100644 (file)
@@ -16,7 +16,7 @@ Feature: Add a new custom file type
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "File types" node in "Site administration>Server"
+    And I navigate to "Server > File types" in site administration
     And I press "Add a new file type"
     And I set the following fields to these values:
       | Extension | mdlr |
index c44e154..daea45c 100644 (file)
@@ -15,7 +15,7 @@ Feature: Course files
     When I log in as "admin"
     And I am on "Course 1" course homepage
     Then "Legacy course files" "link" should exist in current page administration
-    And I navigate to "Legacy course files" node in "Course administration"
+    And I navigate to "Legacy course files" in current page administration
     And I press "Edit legacy course files"
     And "Add..." "link" should be visible
     And "Create folder" "link" should be visible
@@ -31,7 +31,7 @@ Feature: Course files
     When I log in as "admin"
     And I am on "Course 1" course homepage
     Then "Legacy course files" "link" should exist in current page administration
-    And I navigate to "Legacy course files" node in "Course administration"
+    And I navigate to "Legacy course files" in current page administration
     And I press "Edit legacy course files"
     And "Add..." "link" should not be visible
     And "Create folder" "link" should not be visible
index b354dae..e609e75 100644 (file)
@@ -26,7 +26,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
   Scenario: Hide minimum grade
     When I click on "Edit  assign Assignment1" "link"
     And I should see "Minimum grade"
-    Then I navigate to "General settings" node in "Site administration > Grades"
+    Then I navigate to "Grades > General settings" in site administration
     And I set the field "Show minimum grade" to "0"
     And I press "Save changes"
     And I am on "Course 1" course homepage
@@ -37,7 +37,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
   @javascript
   Scenario: Hide calculation icons
     And "Edit calculation for   Course total" "link" should exist
-    When I navigate to "Grader report" node in "Site administration > Grades > Report settings"
+    When I navigate to "Grades > Report settings > Grader report" in site administration
     And I set the field "Show calculations" to "0"
     And I press "Save changes"
     And I am on "Course 1" course homepage
@@ -47,7 +47,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
   @javascript
   Scenario: Disable category overriding
     And "tr .course input[type='text']" "css_element" should exist
-    Then I navigate to "Grade category settings" node in "Site administration > Grades"
+    Then I navigate to "Grades > Grade category settings" in site administration
     And I set the field "Allow category grades to be manually overridden" to "0"
     And I press "Save changes"
     And I am on "Course 1" course homepage
index 20a9398..b9da0a4 100644 (file)
@@ -42,7 +42,8 @@ Feature: Average grades are displayed in the gradebook
     And I press "Save changes"
     And I turn editing mode off
     # Suspend a user
-    And I navigate to "Enrolled users" node in "Course administration > Users"
+    And I am on "Course 1" course homepage
+    And I navigate to "Users > Enrolled users" in current page administration
     And I click on "Edit enrolment" "link" in the "Student 2" "table_row"
     And I set the following fields to these values:
       | Status | Suspended |
index ad27046..702ea0f 100644 (file)
@@ -17,7 +17,7 @@ Feature: Editing a grade item
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | ABCDEF |
index e761671..f51b43d 100644 (file)
@@ -35,9 +35,9 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
     And I press "Save changes"
     And I set "=[[a4]]/2" calculation for grade item "calculated" with idnumbers:
       | Sub category 1 | sub1 |
-    And I navigate to "Overview report" node in "Site administration > Grades > Report settings"
+    And I navigate to "Grades > Report settings > Overview report" in site administration
     And I set the field "s__grade_report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
-    And I navigate to "User report" node in "Site administration > Grades > Report settings"
+    And I navigate to "Grades > Report settings > User report" in site administration
     And I set the field "s__grade_report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
     And I press "Save changes"
     When I log out
index 4f3d6cb..96ba66c 100644 (file)
@@ -17,7 +17,7 @@ Feature: Grade item validation
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | ABCDEF |
index db472f0..fc02227 100644 (file)
@@ -31,7 +31,7 @@ Feature: We can view the logs for any changes to grade letters.
       | id_gradeletter11 | |
       | id_gradeboundary11 | |
     And I press "Save changes"
-    When I navigate to "Live logs" node in "Site administration > Reports"
+    When I navigate to "Reports > Live logs" in site administration
     Then I should see "Grade letter created"
     And I should see "Grade letter updated"
     And I should see "Grade letter deleted"
index 5e17237..3176f39 100644 (file)
@@ -14,7 +14,7 @@ Feature: We can change the grading type and maximum grade point values
       | activity | course | idnumber | name | intro |
       | assign | C1 | assign1| Test Assignment 1 | Test Assignment 1 |
     And I log in as "admin"
-    And I navigate to "General settings" node in "Site administration > Grades"
+    And I navigate to "Grades > General settings" in site administration
     And I set the following fields to these values:
       | Grade point maximum | 900 |
       | Grade point default | 800 |
@@ -92,7 +92,7 @@ Feature: We can change the grading type and maximum grade point values
     And I set the field "grade[modgrade_type]" to "point"
     And I set the field "grade[modgrade_point]" to "600"
     And I press "Save and display"
-    And I navigate to "General settings" node in "Site administration > Grades"
+    And I navigate to "Grades > General settings" in site administration
     And I set the following fields to these values:
       | Grade point maximum | 100 |
     And I press "Save changes"
index d673eab..0503f9f 100644 (file)
@@ -9,7 +9,7 @@ Feature: View gradebook when scales are used
     And I set the following administration settings values:
       | grade_report_showranges    | 1 |
       | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | Letterscale |
index 8a26b40..46c8cb3 100644 (file)
@@ -20,7 +20,7 @@ Feature: Control the aggregation of the scales
     And I set the following administration settings values:
       | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
       | grade_report_user_showcontributiontocoursetotal | 1 |
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | Letterscale |
index 0af66d2..5c8e622 100644 (file)
@@ -6,7 +6,7 @@ Feature: We can view the logs for any changes to grade scales.
 
   Scenario: I edit scales and then view the logs.
     Given I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     # Add a scale
     And I press "Add a new scale"
     And I set the following fields to these values:
@@ -21,7 +21,7 @@ Feature: We can view the logs for any changes to grade scales.
     And I set the following fields to these values:
       | id_scale | ONE,TWO,THREE |
     And I press "Save changes"
-    When I navigate to "Live logs" node in "Site administration > Reports"
+    When I navigate to "Reports > Live logs" in site administration
     Then I should see "Scale created"
     And I should see "Scale updated"
     And I should see "Scale deleted"
index 1b319e3..1d7a84c 100644 (file)
@@ -9,7 +9,7 @@ Feature: View gradebook when single item scales are used
     And I set the following administration settings values:
       | grade_report_showranges    | 1 |
       | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | Singleitem |
index c2ef16e..0419563 100644 (file)
@@ -58,7 +58,7 @@ Feature: Group overview
   Scenario: Filter the overview in various different ways
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     And I follow "Overview"
 
     # Grouping All and Group All filter
index 37b283b..b160511 100644 (file)
@@ -30,7 +30,7 @@ Feature: Test role visibility for the groups management page
   Scenario: Check the default roles are visible
     Given I log in as "manager1"
     And I am on "Course 1" course homepage
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     When I set the field "groups" to "Group 1 (3)"
     And I press "Show members for group"
     Then "optgroup[label='No roles']" "css_element" should not exist in the "#members" "css_element"
@@ -42,7 +42,7 @@ Feature: Test role visibility for the groups management page
   Scenario: Do not allow managers to view any roles and check they are hidden
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Groups" node in "Course administration > Users"
+    And I navigate to "Users > Groups" in current page administration
     When I set the field "groups" to "Group 1 (3)"
     And I press "Show members for group"
     Then "optgroup[label='No roles']" "css_element" should exist in the "#members" "css_element"
index 3281ba6..d66cb2f 100644 (file)
@@ -15,12 +15,12 @@ Feature: Atto Autosave
       | teacher1 | C1 | editingteacher |
       | teacher2 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Atto toolbar settings" node in "Site administration > Plugins > Text editors > Atto HTML editor"
+    And I navigate to "Plugins > Text editors > Atto HTML editor > Atto toolbar settings" in site administration
     And I set the field "Autosave frequency" to "3"
     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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the field "Course summary" to "<p>Image test</p>"
     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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit 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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     Then I should not see "This is my draft"
     And I should see "Modified text"
index 7884710..a28766e 100644 (file)
@@ -19,7 +19,7 @@ Feature: Using the activity grade form element
 
   Scenario: Being able to change the grade type, scale and maximum grade when there are no grades
     Given I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | ABCDEF |
@@ -66,7 +66,7 @@ Feature: Using the activity grade form element
   @javascript
   Scenario: Attempting to change the scale when grades already exist in rating activity
     Given I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | ABCDEF |
@@ -119,7 +119,7 @@ Feature: Using the activity grade form element
   @javascript
   Scenario: Attempting to change the scale when grades already exist in non-rating activity
     Given I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name  | ABCDEF |
index 129ee9d..e81eca3 100644 (file)
@@ -263,7 +263,7 @@ Feature: Initials bar
     And I log out
     And I log in as "teacher"
     And I am on "Course 1" course homepage
-    And I navigate to "Activity completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Activity completion" in current page administration
     And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
     And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
     And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
@@ -288,7 +288,7 @@ Feature: Initials bar
     And I should see "Bstudent Astudent"
     And I should not see "Cstudent Cstudent"
     And I am on "Course 1" course homepage
-    And I navigate to "Activity completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Activity completion" in current page administration
     And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
     And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
     And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
index 9516095..67b3d8e 100644 (file)
@@ -54,6 +54,33 @@ class behat_deprecated extends behat_base {
         $this->execute('behat_grade::i_navigate_to_in_the_course_gradebook', $gradepath);
     }
 
+    /**
+     * Click link in navigation tree that matches the text in parentnode/s (seperated using greater-than character if more than one)
+     *
+     * @Given /^I navigate to "(?P<nodetext_string>(?:[^"]|\\")*)" node in "(?P<parentnodes_string>(?:[^"]|\\")*)"$/
+     *
+     * @throws ExpectationException
+     * @param string $nodetext navigation node to click.
+     * @param string $parentnodes comma seperated list of parent nodes.
+     * @return void
+     * @deprecated since Moodle 3.6 MDL-57281 - please do not use this definition step any more.
+     * @todo MDL-63004 This will be deleted in Moodle 4.0.
+     */
+    public function i_navigate_to_node_in($nodetext, $parentnodes) {
+        $alternative[] = 'I navigate to "PATH" in current page administration';
+        $alternative[] = 'I navigate to "PATH" in site administration';
+        $alternative[] = 'I navigate to "TAB1 > TAB2" in the course gradebook';
+        $alternative[] = 'I navigate to course participants';
+        $alternative[] = 'If some items are not available without Navigation block at all, one can use combination of:
+                              I add the "Navigation" block if not present
+                              I click on "LINK" "link" in the "Navigation" "block"';
+
+        $this->deprecated_message($alternative);
+
+        $parentnodes = array_map('trim', explode('>', $parentnodes));
+        $this->execute('behat_navigation::select_node_in_navigation', array($nodetext, $parentnodes));
+    }
+
     /**
      * Throws an exception if $CFG->behat_usedeprecated is not allowed.
      *
index 959459e..fc7444c 100644 (file)
@@ -220,29 +220,6 @@ class behat_navigation extends behat_base {
         $node->click();
     }
 
-    /**
-     * Click link in navigation tree that matches the text in parentnode/s (seperated using greater-than character if more than one)
-     *
-     * @Given /^I navigate to "(?P<nodetext_string>(?:[^"]|\\")*)" node in "(?P<parentnodes_string>(?:[^"]|\\")*)"$/
-     *
-     * @todo MDL-57281 deprecate in Moodle 3.1
-     *
-     * @throws ExpectationException
-     * @param string $nodetext navigation node to click.
-     * @param string $parentnodes comma seperated list of parent nodes.
-     * @return void
-     */
-    public function i_navigate_to_node_in($nodetext, $parentnodes) {
-        // This step needs to be deprecated and replaced with one of:
-        // - I navigate to "PATH" in current page administration
-        // - I navigate to "PATH" in site administration
-        // - I navigate to course participants
-        // - I navigate to "PATH" in the course gradebook
-        // - I click on "LINK" "link" in the "Navigation" "block" .
-        $parentnodes = array_map('trim', explode('>', $parentnodes));
-        $this->select_node_in_navigation($nodetext, $parentnodes);
-    }
-
     /**
      * Finds a node in the Navigation or Administration tree
      *
@@ -324,7 +301,6 @@ class behat_navigation extends behat_base {
             throw new ExpectationException('Navigation node "' . $nodetext . '" not found under "' .
                 implode($parentnodes, ' > ') . '"', $this->getSession());
         }
-
         $nodetoclick->click();
     }
 
index 76cb49b..d4c4fb8 100644 (file)
@@ -48,16 +48,15 @@ class behat_permissions extends behat_base {
      */
     public function i_set_the_following_system_permissions_of_role($rolename, $table) {
 
-        $parentnodes = get_string('administrationsite') . ' > ' .
-            get_string('users', 'admin') . ' > ' .
+        $parentnodes = get_string('users', 'admin') . ' > ' .
             get_string('permissions', 'role');
 
         // Go to home page.
         $this->execute("behat_general::i_am_on_homepage");
 
         // Navigate to course management page via navigation block.
-        $this->execute("behat_navigation::i_navigate_to_node_in",
-            array(get_string('defineroles', 'role'), $parentnodes)
+        $this->execute("behat_navigation::i_navigate_to_in_site_administration",
+            array($parentnodes . ' > ' . get_string('defineroles', 'role'))
         );
 
         $this->execute("behat_general::click_link", "Edit " . $this->escape($rolename) . " role");
@@ -194,16 +193,15 @@ class behat_permissions extends behat_base {
      * @return void Executes other steps
      */
     public function i_define_the_allowed_role_assignments_for_a_role_as($rolename, $table) {
-        $parentnodes = get_string('administrationsite') . ' > ' .
-            get_string('users', 'admin') . ' > ' .
+        $parentnodes = get_string('users', 'admin') . ' > ' .
             get_string('permissions', 'role');
 
         // Go to home page.
         $this->execute("behat_general::i_am_on_homepage");
 
-        // Navigate to course management page via navigation block.
-        $this->execute("behat_navigation::i_navigate_to_node_in",
-            array(get_string('defineroles', 'role'), $parentnodes)
+        // Navigate to Define roles page via site administration menu.
+        $this->execute("behat_navigation::i_navigate_to_in_site_administration",
+                $parentnodes .' > '. get_string('defineroles', 'role')
         );
 
         $this->execute("behat_general::click_link", "Allow role assignments");
index 6605dc2..802ff3f 100644 (file)
@@ -6,6 +6,6 @@ Feature: View timezone defaults
 
   Scenario: Admin sees default timezone Australia/Perth
     When I log in as "admin"
-    And I navigate to "Location settings" node in "Site administration > Location"
+    And I navigate to "Location > Location settings" in site administration
     Then I should see "Default: Australia/Perth"
     And the field "Default timezone" matches value "Australia/Perth"
index e9a5c7e..4244d98 100644 (file)
@@ -63,6 +63,18 @@ information provided here is intended especially for developers.
 * Following behat steps have been removed from core:
     - I set the field "<field_string>" to multiline
     - I follow "<link_string>"" in the open menu
+* The following behat steps have been deprecated, please do not use these step definitions any more:
+    - behat_navigation.php: i_navigate_to_node_in()
+    - theme/boost/tests/behat/behat_theme_boost_behat_navigation.php: i_navigate_to_node_in()
+  Use one of the following steps instead:
+    - I navigate to "PATH > ITEM" in current page administration
+    - I navigate to "PATH > ITEM" in site administration
+    - I navigate to course participants
+    - I navigate to "TAB1 > TAB2" in the course gradebook
+
+  If some items are not available without Navigation block at all, one can use combination of:
+    - I add the "Navigation" block if not present
+    - I click on "LINK" "link" in the "Navigation" "block"
 * Removed the lib/password_compat/lib/password.php file.
 * The eventslib.php file has been deleted and its functions have been moved to deprecatedlib.php. The affected functions are:
   - events_get_cached()
index 4e7a41c..a0175dd 100644 (file)
@@ -7,7 +7,7 @@ Feature: Embed videos without the media filter
   Background:
     Given I log in as "admin"
     And I am on site homepage
-    And I navigate to "Turn editing on" node in "Front page settings"
+    And I navigate to "Turn editing on" in current page administration
 
   @javascript
   Scenario: Add a video in a URL resource. Make sure media filters work
index 5a23c1e..c03d2a3 100644 (file)
@@ -6,7 +6,7 @@ Feature: Messaging preferences
 
   Background:
     Given I log in as "admin"
-    And I navigate to "Manage message outputs" node in "Site administration > Plugins > Message outputs"
+    And I navigate to "Plugins > Message outputs > Manage message outputs" in site administration
     And I click on "//table[contains(@class, 'admintable')]/tbody/tr/td[contains(text(), 'Email')]/following-sibling::td[1]/a" "xpath_element"
 
   Scenario: Alter my message preferences
@@ -22,7 +22,7 @@ Feature: Messaging preferences
     Given the following "users" exist:
       | username | firstname | lastname | email            |
       | user1    | User      | 1        | user1@example.com    |
-    And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
+    And I navigate to "Users > Accounts > Browse list of users" in site administration
     And I click on "User 1" "link"
     And I click on "Preferences" "link" in the ".profile_tree" "css_element"
     And I click on "Message preferences" "link" in the "region-main" "region"
index ef863fa..e572caf 100644 (file)
@@ -19,7 +19,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "admin"
-    And I navigate to "Annotate PDF" node in "Site administration > Plugins > Activity modules > Assignment > Feedback plugins"
+    And I am on site homepage
+    And I navigate to "Plugins > Activity modules > Assignment > Feedback plugins > Annotate PDF" in site administration
     And I upload "pix/help.png" file to "" filemanager
     And I upload "pix/docs.png" file to "" filemanager
     When I press "Save changes"
index 0ba1b6a..2373b71 100644 (file)
@@ -50,7 +50,8 @@ Feature: Assign reset
     And I follow "Test assignment name"
     And I navigate to "View all submissions" in current page administration
     And I should see "Submitted for grading"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all submissions | 1  |
     And I press "Reset course"
@@ -75,7 +76,8 @@ Feature: Assign reset
         | duedate[minute]    | 00 |
     And I press "Save"
     And I should see "Sam1 Student1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all user overrides | 1  |
     And I press "Reset course"
@@ -99,7 +101,8 @@ Feature: Assign reset
         | duedate[minute]    | 00 |
     And I press "Save"
     And I should see "Group 1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all group overrides | 1  |
     And I press "Reset course"
@@ -121,7 +124,7 @@ Feature: Assign reset
     And I press "Continue"
     And I should see "Sam1 Student1"
     And I am on "Course 1" course homepage
-    When I navigate to "Reset" node in "Course administration"
+    When I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all submissions | 1 |
     And I press "Reset course"
index 09bd8d8..2a024ba 100644 (file)
@@ -21,13 +21,13 @@ Feature: Outcome grading
     And the following config values are set as admin:
       | enableoutcomes | 1 |
     And I log in as "admin"
-    And I navigate to "Scales" node in "Site administration > Grades"
+    And I navigate to "Grades > Scales" in site administration
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name | Test Scale |
       | Scale | Disappointing, Excellent, Good, Very good, Excellent |
     And I press "Save changes"
-    And I navigate to "Outcomes" node in "Site administration > Grades"
+    And I navigate to "Grades > Outcomes" in site administration
     And I press "Add a new outcome"
     And I set the following fields to these values:
       | Full name | Outcome Test |
@@ -35,7 +35,7 @@ Feature: Outcome grading
       | Scale | Test Scale |
     And I press "Save changes"
     And I am on "Course 1" course homepage
-    And I navigate to "Outcomes" node in "Course administration"
+    And I navigate to "Outcomes" in current page administration
     And I set the field "Available standard outcomes" to "Outcome Test"
     And I click on "#add" "css_element"
     And I log out
index 3d2afab..a485ec5 100644 (file)
@@ -62,7 +62,7 @@ Feature: In an assignment, teachers grade multiple students on one page
       | enableoutcomes | 1 |
     When I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Outcomes" node in "Course administration"
+    And I navigate to "Outcomes" in current page administration
     And I follow "Edit outcomes"
     And I press "Add a new outcome"
     And I follow "Add a new scale"
@@ -71,7 +71,7 @@ Feature: In an assignment, teachers grade multiple students on one page
       | Scale | Noob, Nub, 1337, HaXor |
     And I press "Save changes"
     And I am on "Course 1" course homepage
-    And I navigate to "Outcomes" node in "Course administration"
+    And I navigate to "Outcomes" in current page administration
     And I follow "Edit outcomes"
     And I press "Add a new outcome"
     And I set the following fields to these values:
index f741faa..9daea09 100644 (file)
@@ -22,8 +22,11 @@ Feature: Chat calendar entries
       | activity | name           | intro                 | course | idnumber | schedule |
       | chat     | Test chat name | Test chat description | C1     | chat1    | 0 |
     And I log in as "teacher1"
-    And I am on "Course 1" course homepage
-    When I navigate to "Calendar" node in "Site pages"
+    And I am on "Course 1" course homepage with editing mode on
+   # TODO MDL-57120 site "Calendar" link not accessible without navigation block.
+    And I add the "Navigation" block if not present
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    Given I click on "Calendar" "link" in the "Navigation" "block"
     Then I should not see "Test chat name"
 
   Scenario: Create a chat activity and publish the start date to the calendar
@@ -31,6 +34,9 @@ Feature: Chat calendar entries
       | activity | name           | intro                 | course | idnumber | schedule |
       | chat     | Test chat name | Test chat description | C1     | chat1    | 1 |
     And I log in as "teacher1"
-    And I am on "Course 1" course homepage
-    When I navigate to "Calendar" node in "Site pages"
+    And I am on "Course 1" course homepage with editing mode on
+   # TODO MDL-57120 site "Calendar" link not accessible without navigation block.
+    And I add the "Navigation" block if not present
+    And I click on "Site pages" "list_item" in the "Navigation" "block"
+    Given I click on "Calendar" "link" in the "Navigation" "block"
     Then I should see "Test chat name"
index dfe8820..022f384 100644 (file)
@@ -23,7 +23,7 @@ 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" node in "Course administration"
+    And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
       | startdate[day]       | 1 |
       | startdate[month]     | January |
@@ -38,7 +38,8 @@ Feature: Chat reset
       | chattime[hour]      | 12 |
       | chattime[minute]    | 00 |
     And I press "Save and display"
-    When I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    When I navigate to "Reset" in current page administration
     And I set the following fields to these values:
       | reset_start_date[enabled] | 1  |
       | reset_start_date[day]       | 1 |
index 5d0d34d..7adbb28 100644 (file)
@@ -82,8 +82,8 @@ class behat_mod_data extends behat_base {
     public function i_add_an_entry_to_database_with($activityname, TableNode $entrydata) {
 
         $this->execute("behat_general::click_link", $this->escape($activityname));
-        $this->execute("behat_navigation::i_navigate_to_node_in", array(get_string('add', 'mod_data'),
-            get_string('pluginadministration', 'mod_data')));
+        $this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
+                get_string('add', 'mod_data'));
 
         $this->execute("behat_forms::i_set_the_following_fields_to_these_values", $entrydata);
     }
index 558ec83..c2257c4 100644 (file)
@@ -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" node in "Course administration"
+    And I navigate to "Edit 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"
index f18b3b9..59d70b3 100644 (file)
@@ -59,7 +59,8 @@ Feature: Lesson reset
     And I follow "Test lesson name"
     And I navigate to "Reports > Overview" in current page administration
     And I should see "Sam1 Student1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all lesson attempts | 1  |
     And I press "Reset course"
@@ -79,7 +80,8 @@ Feature: Lesson reset
         | Re-takes allowed | 1 |
     And I press "Save"
     And I should see "Sam1 Student1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all user overrides | 1  |
     And I press "Reset course"
@@ -98,7 +100,8 @@ Feature: Lesson reset
         | Re-takes allowed | 1 |
     And I press "Save"
     And I should see "Group 1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all group overrides | 1  |
     And I press "Reset course"
index 1853c06..9833e5b 100644 (file)
@@ -15,7 +15,7 @@ Feature: Add tools
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     And I follow "Manage preconfigured tools"
     And I follow "Add preconfigured tool"
     And I set the following fields to these values:
index dea1105..7ae2030 100644 (file)
@@ -16,7 +16,7 @@ Feature: Restoring Moodle 2 backup restores LTI configuration
 
   Scenario: Backup and restore course with preconfigured site LTI tool on the same site
     When I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     And I follow "Manage preconfigured tools"
     And I follow "Add preconfigured tool"
     And I set the following fields to these values:
@@ -24,7 +24,7 @@ Feature: Restoring Moodle 2 backup restores LTI configuration
       | Tool URL | https://www.moodle.org |
       | lti_coursevisible | 1 |
     And I press "Save changes"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     And "This tool has not yet been used" "text" should exist in the "//div[contains(@id,'tool-card-container') and contains(., 'My site tool')]" "xpath_element"
     And I am on site homepage
     And I follow "Course 1"
@@ -43,7 +43,7 @@ Feature: Restoring Moodle 2 backup restores LTI configuration
     And I open "My LTI module" actions menu
     And I choose "Edit settings" in the open action menu
     Then the field "Preconfigured tool" matches value "My site tool"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     And "This tool is being used 2 times" "text" should exist in the "//div[contains(@id,'tool-card-container') and contains(., 'My site tool')]" "xpath_element"
 
   @javascript @_switch_window
index 3862dc9..9b6ed76 100644 (file)
@@ -15,7 +15,7 @@ Feature: Content-Item support
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     # Create tool type that supports content-item.
     And I follow "configure a tool manually"
     And I set the field "Tool name" to "Teaching Tool 1"
@@ -51,7 +51,7 @@ Feature: Content-Item support
   @javascript
   Scenario: Changing preconfigured tool selection
     Given I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
     And I follow "configure a tool manually"
     And I set the field "Tool name" to "Teaching Tool 2"
     And I set the field "Tool URL" to local url "/mod/lti/tests/fixtures/tool_provider.php"
index 17bd36b..8b40f69 100644 (file)
@@ -6,7 +6,7 @@ Feature: Create/edit tool configuration that has Content-Item support
 
   Background:
     Given I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
 
   Scenario: Verifying ContentItemSelectionRequest selection support in external tool registration
     When I follow "Manage external tool registrations"
index b30f5b1..171ebee 100644 (file)
@@ -17,7 +17,7 @@ Feature: Configure tool types
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "admin"
-    And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
+    And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration
 
   @javascript
   Scenario: Add a tool type from a cartridge URL
index 7235af6..99fb72f 100644 (file)
@@ -37,7 +37,7 @@ Feature: Backup and restore of quizzes
   @javascript @_file_upload
   Scenario: Restore a Moodle 2.8 quiz backup
     When I am on "Course 1" course homepage
-    And I navigate to "Restore" node in "Course administration"
+    And I navigate to "Restore" in current page administration
     And I press "Manage backup files"
     And I upload "mod/quiz/tests/fixtures/moodle_28_quiz.mbz" file to "Files" filemanager
     And I press "Save changes"
index 4054f62..0450293 100644 (file)
@@ -259,7 +259,7 @@ class behat_mod_quiz extends behat_question_base {
 
         $this->execute('behat_general::click_link', $quizname);
 
-        $this->execute("behat_navigation::i_navigate_to_node_in", array($editquiz, $quizadmin));
+        $this->execute("behat_navigation::i_navigate_to_in_current_page_administration", $editquiz);
 
         $this->execute("behat_general::i_click_on", array($menuxpath, "xpath_element"));
         $this->execute("behat_general::i_click_on", array($itemxpath, "xpath_element"));
index 58e1399..686e05f 100644 (file)
@@ -52,5 +52,5 @@ Feature: Set a quiz to be marked complete when the student uses all attempts all
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Activity completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Activity completion" in current page administration
     And "Completed" "icon" should exist in the "Student 1" "table_row"
index 7afbec5..6689683 100644 (file)
@@ -45,5 +45,5 @@ Feature: Set a quiz to be marked complete when the student passes
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Activity completion" node in "Course administration > Reports"
+    And I navigate to "Reports > Activity completion" in current page administration
     And "Completed" "icon" should exist in the "Student 1" "table_row"
index 5b1b9a5..71e54dc 100644 (file)
@@ -109,7 +109,7 @@ Feature: Edit quiz page - adding things
 
     # Create a couple of sub categories.
     And I am on "Course 1" course homepage
-    And I navigate to "Categories" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Categories" in current page administration
     Then I should see "Add category"
     Then I set the field "Parent category" to "Default for C1"
     And I set the field "Name" to "Subcat 1"
@@ -123,7 +123,7 @@ Feature: Edit quiz page - adding things
     Then I press "id_submitbutton"
     And I should see "Subcat 2"
 
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I follow "Question bank"
     Then I should see "Question bank"
     And I should see "Select a category"
 
index 3db5abd..98d0e90 100644 (file)
@@ -26,7 +26,7 @@ Feature: Adding questions to a quiz from the question bank
       | Test questions   | essay     | question 2 name | teacher1 | Question 2 text |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
     And I click on "Edit" "link" in the "question 1 name" "table_row"
     And I set the following fields to these values:
       | Tags | foo |
index 0f4eddb..bd5feac 100644 (file)
@@ -29,7 +29,7 @@ Feature: Adding random questions to a quiz based on category and tags
   Scenario: Available tags are shown in the autocomplete tag field
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
-    When I navigate to "Questions" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Questions" in current page administration
     And I click on "Edit" "link" in the "question 1 name" "table_row"
     And I set the following fields to these values:
       | Tags | foo |
index d2d877a..8fd0849 100644 (file)
@@ -44,7 +44,7 @@ Feature: Quiz reset
     And I log out
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Reset" node in "Course administration"
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all quiz attempts | 1  |
     And I press "Reset course"
@@ -66,7 +66,8 @@ Feature: Quiz reset
         | Attempts allowed | 2 |
     And I press "Save"
     And I should see "Sam1 Student1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all user overrides | 1  |
     And I press "Reset course"
@@ -87,7 +88,8 @@ Feature: Quiz reset
         | Attempts allowed | 2 |
     And I press "Save"
     And I should see "Group 1"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
     And I set the following fields to these values:
         | Delete all group overrides | 1  |
     And I press "Reset course"
index fb2bef9..05b906c 100644 (file)
@@ -39,7 +39,8 @@ Feature: Teachers can reset wiki pages, tags and files
     And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
     And I press "Save changes"
     And I should see "empty.txt"
-    And I navigate to "Reset" node in "Course administration"
+    And I am on "Course 1" course homepage
+    And I navigate to "Reset" in current page administration
 
   Scenario: Reset page, tags and files
     And I set the following fields to these values:
index d995f51..c762b73 100644 (file)
@@ -42,7 +42,7 @@ Feature: Reset all personalised pages to default
 
   Scenario: Reset Dashboard for all users
     Given I log in as "admin"
-    And I navigate to "Default Dashboard page" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Default Dashboard page" in site administration
     And I press "Blocks editing on"
     And I add the "Latest announcements" block
     And I open the "Online users" blocks action menu
@@ -64,7 +64,7 @@ Feature: Reset all personalised pages to default
     And I log out
 
     And I log in as "admin"
-    And I navigate to "Default Dashboard page" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Default Dashboard page" in site administration
     When I press "Reset Dashboard for all users"
     And I should see "All Dashboard pages have been reset to default."
     And I log out
@@ -90,7 +90,7 @@ Feature: Reset all personalised pages to default
 
   Scenario: Reset profile for all users
     Given I log in as "admin"
-    And I navigate to "Default profile page" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Default profile page" in site administration
     And I press "Blocks editing on"
     And I add the "Latest announcements" block
     And I log out
@@ -106,7 +106,7 @@ Feature: Reset all personalised pages to default
     And I log out
 
     And I log in as "admin"
-    And I navigate to "Default profile page" node in "Site administration > Appearance"
+    And I navigate to "Appearance > Default profile page" in site administration
     When I press "Reset profile for all users"
     And I should see "All profile pages have been reset to default."
     And I log out
index b846943..4bf2c6a 100644 (file)
@@ -19,7 +19,7 @@ Feature: Test importing questions from GIFT format.
 
   @javascript @_file_upload
   Scenario: import some GIFT questions
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_gift" to "1"
     And I upload "question/format/gift/tests/fixtures/questions.gift.txt" file to "Import" filemanager
     And I press "id_submitbutton"
@@ -30,7 +30,7 @@ Feature: Test importing questions from GIFT format.
     Then I should see "colours"
 
     # Now export again.
-    And I navigate to "Export" node in "Course administration > Question bank"
+    And I follow "Export"
     And I set the field "id_format_gift" to "1"
     And I press "Export questions to file"
     And following "click here" should download between "1550" and "1650" bytes
index 10f900d..1dc5157 100644 (file)
@@ -19,7 +19,7 @@ Feature: Test importing questions from WebCT format.
 
   @javascript @_file_upload
   Scenario: import some WebCT questions
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_webct" to "1"
     And I upload "question/format/webct/tests/fixtures/sample_webct.txt" file to "Import" filemanager
     And I press "id_submitbutton"
index 8c6c8b1..33e1b9d 100644 (file)
@@ -19,7 +19,7 @@ Feature: Test importing calculated question from WebCT format.
 
   @javascript @_file_upload
   Scenario: import a WebCT calculated question
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_webct" to "1"
     And I upload "question/format/webct/tests/fixtures/sample_calculated_webct.txt" file to "Import" filemanager
     And I press "id_submitbutton"
index eed354c..ba73692 100644 (file)
@@ -19,7 +19,7 @@ Feature: Test importing questions from Moodle XML format.
 
   @javascript @_file_upload
   Scenario: import some true/false questions from Moodle XML format
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_xml" to "1"
     And I upload "question/format/xml/tests/fixtures/truefalse.xml" file to "Import" filemanager
     And I press "id_submitbutton"
@@ -32,7 +32,7 @@ Feature: Test importing questions from Moodle XML format.
     Then I should see "Moodle acronym (True)"
 
     # Now export again.
-    And I navigate to "Export" node in "Course administration > Question bank"
+    And I follow "Export"
     And I set the field "id_format_xml" to "1"
     And I set the field "Export category" to "TrueFalse"
     And I press "Export questions to file"
@@ -40,7 +40,7 @@ Feature: Test importing questions from Moodle XML format.
 
   @javascript @_file_upload
   Scenario: import some multiple choice questions from Moodle XML format
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_xml" to "1"
     And I upload "question/format/xml/tests/fixtures/multichoice.xml" file to "Import" filemanager
     And I press "id_submitbutton"
@@ -52,7 +52,7 @@ Feature: Test importing questions from Moodle XML format.
 
   @javascript @_file_upload
   Scenario: import some multi-answer questions from Moodle XML format
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_xml" to "1"
     And I upload "question/format/xml/tests/fixtures/multianswer.xml" file to "Import" filemanager
     And I press "id_submitbutton"
@@ -64,7 +64,7 @@ Feature: Test importing questions from Moodle XML format.
 
   @javascript @_file_upload
   Scenario: import some questions with legacy-style images from Moodle XML format
-    When I navigate to "Import" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Import" in current page administration
     And I set the field "id_format_xml" to "1"
     And I upload "question/format/xml/tests/fixtures/sample_questions_with_old_image_tag.xml" file to "Import" filemanager
     And I press "id_submitbutton"
index e0f344d..7ae3708 100644 (file)
@@ -22,7 +22,7 @@ Feature: A teacher can duplicate questions in the question bank
       | Test questions   | essay | Test question to be copied | Write about whatever you want |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
 
   @javascript
   Scenario: Duplicating a previously created question
index c9d0bb2..c8d3b5f 100644 (file)
@@ -22,7 +22,7 @@ Feature: A teacher can delete questions in the question bank
       | Test questions   | essay | Test question to be deleted | Write about whatever you want |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
 
   @javascript
   Scenario: A question not used anywhere can really be deleted
@@ -45,7 +45,8 @@ Feature: A teacher can delete questions in the question bank
     And I add a "True/False" question to the "Test quiz" quiz with:
       | Question name | Test used question to be deleted |
       | Question text | Write about whatever you want    |
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I am on "Course 1" course homepage
+    And I navigate to "Question bank > Questions" in current page administration
     When I click on "Delete" "link" in the "Test used question to be deleted" "table_row"
     And I press "Delete"
     Then I should not see "Test used question to be deleted"
index b71221f..6adc676 100644 (file)
@@ -22,7 +22,7 @@ Feature: A teacher can edit questions in the question bank
       | Test questions   | essay | Test question to be edited | Write about whatever you want |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
 
   @javascript
   Scenario: Edit a previously created question
index beccac1..d231c5f 100644 (file)
@@ -22,7 +22,7 @@ Feature: The questions can be tagged
   Scenario: The tags autocomplete should include standard tags
     When I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
     And I press "Create a new question ..."
     And I set the field "item_qtype_truefalse" to "1"
     And I press "Add"
index 8ea0682..4f0be1f 100644 (file)
@@ -23,7 +23,7 @@ Feature: The questions in the question bank can be filtered by tags
       | Test questions   | essay     | question 2 name | teacher1 | Question 2 text |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
     And I click on "Edit" "link" in the "question 1 name" "table_row"
     And I set the following fields to these values:
       | Tags | foo |
index b48db72..14fcd4d 100644 (file)
@@ -22,7 +22,7 @@ Feature: A teacher can move question categories in the question bank
 
   Scenario: A question category can be moved to another context
     When I follow "Test quiz"
-    And I navigate to "Categories" node in "Quiz administration > Question bank"
+    And I navigate to "Quiz administration > Question bank > Categories" in current page administration
     And I set the following fields to these values:
       | Name            | Test category         |
       | Parent category | Top for Test quiz     |
@@ -32,7 +32,7 @@ Feature: A teacher can move question categories in the question bank
 
   Scenario: A question category can be moved to top level
     When I follow "Test quiz"
-    And I navigate to "Categories" node in "Quiz administration > Question bank"
+    And I navigate to "Quiz administration > Question bank > Categories" in current page administration
     And I set the following fields to these values:
       | Name            | Test category         |
       | Parent category | Default for Test quiz |
index b772b63..91d2c23 100644 (file)
@@ -22,7 +22,7 @@ Feature: A teacher can preview questions in the question bank
       | Test questions   | numerical | Test question to be previewed |
     And I log in as "teacher1"
     And I am on "Course 1" course homepage
-    And I navigate to "Questions" node in "Course administration > Question bank"
+    And I navigate to "Question bank > Questions" in current page administration
     When I click on "Preview" "link" in the "Test question to be previewed" "table_row"
     And I switch to "questionpreview" window
 
index 8d66a27..772c66e 100644 (file)
@@ -27,7 +27,7 @@ Feature: A teacher can put questions in categories in the question bank
     And I am on "Course 1" course homepage
 
   Scenario: A new question category can be created
-    When I navigate to "Categories" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Categories" in current page administration
     And I set the following fields to these values:
       | Name            | New Category 1    |
       | Parent category | Top               |
@@ -37,7 +37,7 @@ Feature: A teacher can put questions in categories in the question bank
     And I should see "Created as a test" in the "New Category 1" "list_item"
 
   Scenario: A question category can be edited
-    When I navigate to "Categories" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Categories" in current page administration
     And I click on "Edit" "link" in the "Subcategory" "list_item"
     And the field "parent" matches value "&nbsp;&nbsp;&nbsp;Default for C1"
     And I set the following fields to these values:
@@ -48,12 +48,12 @@ Feature: A teacher can put questions in categories in the question bank
     And I should see "I was edited" in the "New name" "list_item"
 
   Scenario: An empty question category can be deleted
-    When I navigate to "Categories" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Categories" in current page administration
     And I click on "Delete" "link" in the "Subcategory" "list_item"
     Then I should not see "Subcategory"
 
   Scenario: An non-empty question category can be deleted if you move the contents elsewhere
-    When I navigate to "Categories" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Categories" in current page administration
     And I click on "Delete" "link" in the "Used category" "list_item"
     And I should see "The category 'Used category' contains 1 questions"
     And I press "Save in category"
@@ -62,7 +62,7 @@ Feature: A teacher can put questions in categories in the question bank
 
   @javascript
   Scenario: Move a question between categories via the question page
-    When I navigate to "Questions" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Questions" in current page administration
     And I set the field "Select a category" to "Used category"
     And I click on "Test question to be moved" "checkbox" in the "Test question to be moved" "table_row"
     And I set the field "Question category" to "Subcategory"
@@ -74,7 +74,7 @@ Feature: A teacher can put questions in categories in the question bank
 
   @javascript
   Scenario: Move a question between categories via the question settings page
-    When I navigate to "Questions" node in "Course administration > Question bank"
+    When I navigate to "Question bank > Questions" in current page administration
     And I set the field "Select a category" to "Used category"
     And I click on "Edit" "link" in the "Test question to be moved" "table_row"
     And I click on "Use this category" "checkbox"
index c3cc42c..92ba9b5 100644 (file)
@@ -24,7 +24,7 @@ Feature: The questions in the question bank can be sorted in various w