Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@tool @tool_licensemanagerFeature: Delete custom licensesIn order to manage custom licensesAs an adminI need to be able to delete custom licenses but not standard Moodle licenses@javascriptScenario: I can delete a custom licenseGiven I log in as "admin"And I navigate to "Licence > Licence manager" in site administrationAnd I click on "Create licence" "link"And I set the following fields to these values:| shortname | MIT || fullname | MIT Licence || source | https://opensource.org/licenses/MIT || Licence version | ##1 March 2019## |And I press "Save changes"And I click on "Delete" "icon" in the "MIT" "table_row"When I click on "Yes" "button" in the "Delete licence" "dialogue"Then I should not see "MIT Licence" in the "manage-licenses" "table"Scenario: I cannot delete a standard licenseGiven I log in as "admin"And I navigate to "Licence > Licence manager" in site administrationThen I should see "Licence not specified" in the "unknown" "table_row"And I should not see "Delete" in the "unknown" "table_row"@javascript @_file_uploadScenario: I cannot delete a custom license in useGiven I log in as "admin"And I navigate to "Licence > Licence manager" in site administrationAnd I click on "Create licence" "link"And I set the following fields to these values:| shortname | Test licence || fullname | Test licence || source | https://opensource.org/licenses/MIT || Licence version | ##1 March 2019## |And I press "Save changes"And I follow "Private files" in the user menuAnd I upload "lib/tests/fixtures/gd-logo.png" file to "Files" filemanagerAnd I click on "gd-logo.png" "link"And I set the field "Choose licence" to "Test licence"And I press "Update"And I press "Save changes"And I am on site homepageAnd I navigate to "Licence > Licence manager" in site administrationAnd I click on "Delete" "icon" in the "Test licence" "table_row"When I click on "Yes" "button" in the "Delete licence" "dialogue"Then I should see "Cannot delete a licence which is currently assigned to one or more files"