Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-14131 Moodle 3.9 QA
  3. MDLQA-14712

CLONE - Only users with the required capability can deploy H5P content

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 3.9
    • Moodle 3.9
    • H5P, Student, Teacher
    • None

      Test requirements:

      • 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!
      • A course containing a forum with both a teacher and a student enrolled. The forum has to be configured with "Maximum attachment size" set to "1 MB" in the "Attachments and word count" section.

      Test steps:

      1. Log in as the student.
      2. In the forum, add a new discussion "Student" and using the Atto button "Manage files" upload the attached file "advanced-blanks.h5p".
      3. Log in as the teacher.
      4. In the forum, add a new discussion "Teacher" and using the Atto button "Insert H5P" upload the attached file "advanced-blanks.h5p".
      5. Post in the forum and display the discussion.
      6. Check for the following error: "Note that the libraries may exist in the file you uploaded, but you're not allowed to upload new libraries. Please contact your administrator.".
      7. Log in as the admin.
      8. In the forum, edit the discussion "Student" (step 2) and using the Atto button "Insert H5P" select the file uploaded in the same step (File picker > Embedded files).
      9. Post in the forum and display the discussion.
      10. Check for the following error: "This file can't be displayed because it has been uploaded by a user without the required capability to deploy H5P content.".
      11. Go to Site administration > H5P > Manage H5P content types.
      12. Check in the "Installed H5P content types" list that "Advanced fill the blanks" does not exist.
      13. Upload the attached file "advanced-blanks.h5p" using the form "H5P content type".
      14. Check in the "Installed H5P content types" list that there is "Advanced fill the blanks".
      15. Go to the "Student" discussion and check that the same error message still appears.
      16. Log in as the teacher.
      17. Go to the "Teacher" discussion and check that the H5P content is displayed correctly.

       

            bigmoodle Max Larkin
            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.