From b1869e5e93e67e8dfa1800f1ddabd005861d553d Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Wed, 17 Jul 2024 14:33:26 +0800 Subject: [PATCH] MDL-82507 core_ltix: fix navigation to LTI site admin in behat This was using 'General' which won't work on Classic. --- ltix/tests/behat/contentitemregistration.feature | 2 +- ltix/tests/behat/restricttocategory.feature | 4 ++-- ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature | 4 ++-- ltix/tests/behat/toolconfigure.feature | 2 +- ltix/tests/behat/viewtools.feature | 2 +- mod/lti/tests/behat/backup_restore.feature | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ltix/tests/behat/contentitemregistration.feature b/ltix/tests/behat/contentitemregistration.feature index 47cbac11fff32..a9f878cb9a7c4 100644 --- a/ltix/tests/behat/contentitemregistration.feature +++ b/ltix/tests/behat/contentitemregistration.feature @@ -6,7 +6,7 @@ Feature: Create/edit tool configuration that has Deep Linking support Background: Given I log in as "admin" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration Scenario: Verifying ContentItemSelectionRequest selection support in external tool registration When I follow "Manage external tool registrations" diff --git a/ltix/tests/behat/restricttocategory.feature b/ltix/tests/behat/restricttocategory.feature index cdd8b189859d5..103f620f30427 100644 --- a/ltix/tests/behat/restricttocategory.feature +++ b/ltix/tests/behat/restricttocategory.feature @@ -54,7 +54,7 @@ Feature: Make an LTI only available to specific course categories @javascript Scenario: Editing and saving selected parent / child categories Given I log in as "admin" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration And I follow "Manage preconfigured tools" And I follow "Add preconfigured tool" And I expand all fieldsets @@ -105,7 +105,7 @@ Feature: Make an LTI only available to specific course categories And I open the action menu in "Course Tool 1" "table_row" And I choose "Edit" in the open action menu And I should not see "Restrict to category" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration And I follow "Manage preconfigured tools" And I follow "Add preconfigured tool" And I should see "Restrict to category" diff --git a/ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature b/ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature index 7950318e1ece3..65461b8ae7ef6 100644 --- a/ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature +++ b/ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature @@ -8,7 +8,7 @@ Feature: Verify the breadcrumbs in manage tools site administration pages Given I log in as "admin" Scenario: Verify the breadcrumbs in manage tools page as an admin - Given I navigate to "General > LTI > Manage tools" in site administration + Given I navigate to "LTI > Manage tools" in site administration And "Manage tools" "text" should exist in the ".breadcrumb" "css_element" And "LTI" "link" should exist in the ".breadcrumb" "css_element" When I click on "configure a tool manually" "link" @@ -24,7 +24,7 @@ Feature: Verify the breadcrumbs in manage tools site administration pages And "Manage tools" "link" should exist in the ".breadcrumb" "css_element" And "LTI" "link" should exist in the ".breadcrumb" "css_element" And I press "Cancel" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration And I click on "Manage external tool registrations" "link" And "Manage external tool registrations" "text" should exist in the ".breadcrumb" "css_element" And "LTI" "link" should exist in the ".breadcrumb" "css_element" diff --git a/ltix/tests/behat/toolconfigure.feature b/ltix/tests/behat/toolconfigure.feature index 050cd26da8744..9e78beb6287e8 100644 --- a/ltix/tests/behat/toolconfigure.feature +++ b/ltix/tests/behat/toolconfigure.feature @@ -6,7 +6,7 @@ Feature: Configure tool types Background: Given I log in as "admin" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration @javascript Scenario: Add a tool type from a cartridge URL diff --git a/ltix/tests/behat/viewtools.feature b/ltix/tests/behat/viewtools.feature index dcec1b5c2610d..ffddc88d44166 100644 --- a/ltix/tests/behat/viewtools.feature +++ b/ltix/tests/behat/viewtools.feature @@ -10,7 +10,7 @@ Feature: Navigate existing LTI tool types using pagination |description |Example description [count] | |baseurl |https://www.example.com/tool[count]| And I log in as "admin" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > Manage tools" in site administration @javascript Scenario: View first page of tool types. diff --git a/mod/lti/tests/behat/backup_restore.feature b/mod/lti/tests/behat/backup_restore.feature index 8f57117ccd096..450f5f733d609 100644 --- a/mod/lti/tests/behat/backup_restore.feature +++ b/mod/lti/tests/behat/backup_restore.feature @@ -31,7 +31,7 @@ Feature: Restoring Moodle 2 backup restores LTI configuration And I am on site homepage And I follow "Course 1 copy 1" Then I should see "My LTI module" - And I navigate to "General > LTI > Manage tools" in site administration + And I navigate to "LTI > 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