-
Task
-
Resolution: Fixed
-
Major
-
4.2
There's coverage for the licence manager page basic actions (add/edit/delete) but there's no coverage for scenarios where admin tries to delete a custom licence linked to a file.
The reason is because that page throws an exception when the user tries to do that making behat fail, see MDL-77269.
QA tests to be automated
Test 3 - User Licence Preferences
- Navigate to Site Administration > Licence > Licence settings
- Note the site default licence set (you will need this for a later step)
- Deselect the rememberuserlicencepref checkbox and save the settings
- Navigate to Private files and add a file using the add icon ensuring that you select a licence which is NOT the site default licence
- Use the add icon again and check that the Choose licence preselected licence is the site default and not the licence you chose for last file upload (it should be the site default licence)
Test 4 - Licence used by files cannot be deleted
- Create another licence. Ensure that you do not set this license as the site's default licence.
- Navigate to Private files and add a new file seleting your custom licence as the file's licence and save changes
- Navigate back to Site Administration > Licences > Manage licences
- Attempt to delete the custom license, you should see an exception message 'Cannot delete a licence which is currently assigned to one or more files'
- has a QA test
-
MDLQA-16746 An administrator can manage lincences
- Open
- is blocked by
-
MDL-77269 Make licence manager page related errors more user-friendly
- Closed