Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16122 Moodle 4.0 QA
  3. MDLQA-16620

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

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 4.0
    • Moodle 4.0
    • Filters, H5P, Teacher
    • None

      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.
         

        1. 16620-0222 08.03.2022 17.09.18.png
          27 kB
          Dag Klimas
        2. 16620-0223 08.03.2022 17.10.04.png
          101 kB
          Dag Klimas
        3. 16620-0224 08.03.2022 17.10.33.png
          90 kB
          Dag Klimas
        4. 16620-0225 08.03.2022 17.10.40.png
          68 kB
          Dag Klimas
        5. 16620-0226 08.03.2022 17.12.54.png
          1.01 MB
          Dag Klimas
        6. 16620-0227 08.03.2022 17.15.03.png
          1.01 MB
          Dag Klimas
        7. 16620-0228 08.03.2022 17.16.09.png
          1.49 MB
          Dag Klimas
        8. 16620-0229 08.03.2022 17.16.58.png
          1.50 MB
          Dag Klimas
        9. 16620-0230 08.03.2022 17.18.09.png
          105 kB
          Dag Klimas
        10. 16620-0231 08.03.2022 17.18.52.png
          102 kB
          Dag Klimas
        11. 16620-0232 08.03.2022 17.20.02.png
          1.45 MB
          Dag Klimas
        12. 16620-0233 08.03.2022 17.20.19.png
          194 kB
          Dag Klimas
        13. 16620-0234 08.03.2022 17.20.52.png
          1.46 MB
          Dag Klimas

            dag Dag Klimas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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