Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-14116

Only users with the required capability can deploy H5P content

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Minor
    • Affects Version/s: Master copy - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Component/s: Administrator, H5P, Student, Teacher
    • Labels:
      None

      Description

      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.

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: