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

CLONE - A teacher can add external H5P content to activities or resources

    XMLWordPrintable

Details

    • Functional Test
    • Minor
    • Moodle 4.1
    • Moodle 4.1
    • Filters, H5P, Teacher
    • None

    Description

      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 requirements:

      • A course with one teacher and at least one student
      • Please, test it both with Boost and Classic themes
      • Please, test it using both Atto and TinyMCE editors

      Test steps:

      1. Log in as admin and go to Site administration > Plugins > Filters > Manage filters.
      2. Check that 'Display H5P' filter is enabled and is listed above 'Convert URLs into links and images' and 'Activity names auto-linking' filters.
      3. Click on Settings link of Display H5P filter, and h5p and add this in "Allowed sources":

        https://h5p.org/h5p/embed/[id]
        https://generic.wordpress.soton.ac.uk/altc/wp-admin/admin-ajax.php?action=h5p_embed&id=[id]
        https://moodle.h5p.com/content/[id]/embed
        https://moodle.h5p.com/content/[id]

      4. Log out as admin and log in as teacher.
      5. Go to the course and create a new 'Page' resource.
      6. Add a name to the new Page, and add this to 'Page content' field, using the HTML mode (you'll need to click the </> Atto button):

        a) valid URL: https://h5p.org/h5p/embed/580638 <br/>
        b) another valid URL: https://h5p.org/h5p/embed/6729 <br/>
        c) non valid URL: https://moodle.org <br/>
        d) URL inside a link tag: <a href="#">https://h5p.org/h5p/embed/6729</a> <br/> 
        e) paragraph with a valid URL https://h5p.org/h5p/embed/580638 inside <br/>
        f) a valid URL ending in '/embed': https://moodle.h5p.com/content/1290729733828858779/embed <br/>
        g) an h5p.com valid URL not ending in '/embed': https://moodle.h5p.com/content/1290729733828858779 <br/>
        h) a wordpress valid URL: https://generic.wordpress.soton.ac.uk/altc/wp-admin/admin-ajax.php?action=h5p_embed&id=1 <br/>

      7. Check that the H5P contents of a, b, e, f, g and h are displayed. Check that c and d are not rendering any H5P content.
      8. Log out as teacher and log in as a student enrolled in the course.
      9. Check that the H5P contents of a, b, e, f, g and h are displayed. Check that c and d are not rendering any H5P content.
         

      Attachments

        1. Screenshot 2022-11-08 144808.png
          34 kB
          Tamar Elikishvili
        2. Screenshot 2022-11-08 144856.png
          43 kB
          Tamar Elikishvili
        3. Screenshot 2022-11-08 144928.png
          201 kB
          Tamar Elikishvili
        4. Screenshot 2022-11-08 145302.png
          37 kB
          Tamar Elikishvili
        5. Screenshot 2022-11-08 145319.png
          49 kB
          Tamar Elikishvili
        6. Screenshot 2022-11-08 145709.png
          47 kB
          Tamar Elikishvili
        7. Screenshot 2022-11-08 145751.png
          46 kB
          Tamar Elikishvili
        8. Screenshot 2022-11-08 145802.png
          37 kB
          Tamar Elikishvili
        9. Screenshot 2022-11-08 145834.png
          44 kB
          Tamar Elikishvili
        10. Screenshot 2022-11-08 145916.png
          56 kB
          Tamar Elikishvili
        11. Screenshot 2022-11-08 145928.png
          64 kB
          Tamar Elikishvili
        12. Screenshot 2022-11-08 145944.png
          186 kB
          Tamar Elikishvili

        Issue Links

          Activity

            People

              tamar Tamar Elikishvili
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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