Skip to content

Commit

Permalink
MDL-82507 core_ltix: fix navigation to LTI site admin in behat
Browse files Browse the repository at this point in the history
This was using 'General' which won't work on Classic.
  • Loading branch information
snake committed Jul 22, 2024
1 parent 987f8e7 commit b1869e5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ltix/tests/behat/contentitemregistration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions ltix/tests/behat/restricttocategory.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions ltix/tests/behat/siteadmin_managetool_breadcrumbs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ltix/tests/behat/toolconfigure.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ltix/tests/behat/viewtools.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mod/lti/tests/behat/backup_restore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1869e5

Please sign in to comment.