Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16759 Moodle 4.1 QA
  3. MDLQA-17360

CLONE - An administrator can manage licences

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 4.1
    • Moodle 4.1
    • Administration

      This test requires admin access. If you would like to use the QA testing site for running it, please see the QA testing guide for details of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!

      Test 1 - Licence pages and settings

      1. As admin navigate to Site Administration > Licence > Licence settings
      2. You should see the admin settings sitedefaultlicense and rememberuserlicencepref
      3. The default license should now be 'Licence not specified'
      4. rememberuserlicencepref setting should be checked by default.

      Test 2 - Custom licences can be disabled

      1. Create another licence.
      2. Navigate to Private Files and drag and drop a file into the file picker and Save changes.
      3. Click on Manage private files, then click on the file, in the dropdown for Choose licence your custom licence should be visible.
      4. Add a file using the add icon   instead of drag and drop, select 'Upload a file' from the filepicker and you should see your licence in the Choose licence dropdown here as well
      5. Select 'Recent files' and click on the file you added, in the dropdown for Choose licence your custom licence should be visable again.
      6. Return to the Licence manager page and disable your custom licence you added. 
      7. Repeat the test checking that your custom licence is no longer displayed in the Choose licence dropdowns (unless that file had already been set to your custom licence before the licence was disabled, then it should still display the custom licence)

      Test 3 - User Licence Preferences 

      1. Navigate to Site Administration > Licence > Licence settings
      2. Note the site default licence set (you will need this for a later step)
      3. Deselect the rememberuserlicencepref checkbox and save the settings
      4. 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
      5. 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

      1. Create another licence. Ensure that you do not set this license as the site's default licence.
      2. Navigate to Private files and add a new file seleting your custom licence as the file's licence and save changes
      3. Navigate back to Site Administration > Licences > Manage licences
      4. 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'

        1. MDLQA17360Test4Step4.png
          MDLQA17360Test4Step4.png
          85 kB
        2. MDLQA17360spelling.png
          MDLQA17360spelling.png
          138 kB
        3. MDLQA17360 2.png
          MDLQA17360 2.png
          75 kB
        4. MDLQA-17360 1.png
          MDLQA-17360 1.png
          9 kB

            alrachels AL Rachels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.