-
Functional Test
-
Minor
-
Moodle 3.10
-
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:
- Log in as the student.
- In the forum, add a new discussion "Student" and using the Atto button "Manage files" upload the attached file "advanced-blanks.h5p".
- Log in as the teacher.
- In the forum, add a new discussion "Teacher" and using the Atto button "Insert H5P" upload the attached file "advanced-blanks.h5p".
- Post in the forum and display the discussion.
- 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.".
- Log in as the admin.
- 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).
- Post in the forum and display the discussion.
- 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.".
- Go to Site administration > H5P > Manage H5P content types.
- Check in the "Installed H5P content types" list that "Advanced fill the blanks" does not exist.
- Upload the attached file "advanced-blanks.h5p" using the form "H5P content type".
- Check in the "Installed H5P content types" list that there is "Advanced fill the blanks".
- Go to the "Student" discussion and check that the same error message still appears.
- Log in as the teacher.
- Go to the "Teacher" discussion and check that the H5P content is displayed correctly.