Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-19836 Moodle 5.0 QA
  3. MDLQA-20164

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

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • None
    • Moodle 5.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

      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://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. Set a name and add the following to 'Page content' field using the "Source code" mode (In the toolbar, click View > Source code):

        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/>
        

      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. (2) 7 Passed -- (Main)MDLQA -20164.png
          143 kB
          Kim Jared Lucas
        2. (2) 9 Passed -- (Main)MDLQA -20164.png
          128 kB
          Kim Jared Lucas
        3. (1) 7 Passed -- (Main)MDLQA -20164.png
          153 kB
          Kim Jared Lucas
        4. (1) 9 Passed -- (Main)MDLQA -20164.png
          165 kB
          Kim Jared Lucas

            kimjared2121 Kim Jared Lucas
            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.