AutorÃa | Ultima modificación | Ver Log |
@enrol @enrol_ltiFeature: Check that the page listing the shared external tools is functioning as expectedIn order to edit an external toolAs a teacherI need to ensure the tool listing page is working as expectedBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | name | intro | course | idnumber | section || assign | Test assignment name | Submit your online text | C1 | assign1 | 1 |And I log in as "admin"And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administrationAnd I click on "Enable" "link" in the "Publish as LTI tool" "table_row"And I log outScenario: I want to edit an external toolGiven I log in as "teacher1"And I turn editing mode onAnd I am on the "Course 1" "enrolment methods" pageAnd I select "Publish as LTI tool" from the "Add method" singleselectAnd I set the following fields to these values:| Custom instance name | Assignment - LTI || Tool to be published | Test assignment name || LTI version | Legacy LTI (1.1/2.0) |And I press "Add method"And I am on "Course 1" course homepageAnd I navigate to "Published as LTI tools" in current page administrationAnd I click on "Legacy LTI (1.1/2.0" "link"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"And I click on "Enable" "link" in the "Assignment - LTI" "table_row"And ".dimmed_text" "css_element" should not exist in the "Assignment - LTI" "table_row"And I click on "Edit" "link" in the "Assignment - LTI" "table_row"And I set the following fields to these values:| Custom instance name | Course - LTI || Tool to be published | Course |And I press "Save changes"And I should see "Course - LTI" in the ".generaltable" "css_element"And I click on "Delete" "link" in the "Course - LTI" "table_row"And I press "Cancel"And I should see "Course - LTI" in the ".generaltable" "css_element"And I click on "Delete" "link" in the "Course - LTI" "table_row"And I press "Continue"And I should see "No resources or activities are published yet"And I should not see "Course - LTI"