Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66404

Create appropriate events for H5P content renderer

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8
    • 3.8
    • H5P
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-66404-master
    • Hide

      Covered by PHPUnit tests.

      Manual testing for event H5P viewed

      1. Use a fresh new moodle site.
      2. Login as admin.
      3. Create a new course named Course 1.
      4. Create two new users, one student named s1 and one teacher named t1.
      5. Add a new activity page named Test Page
      6. Using the Atto editor, upload the H5P attached in this issue (find-the-words-7-7.h5p).
      7. Save and display the activity.
      8. Logout and login as t1.
      9. Go to the new course and display the activity.
      10. You have to see the H5P content.
      11. Logout and login as s1.
      12. Go to the new course and display the activity.
      13. Logout and login as admin.
      14. Go to Site administration > Reports > Live logs
      15. Expected Result: You should see three events named H5P viewed in the column Event name, one for the admin, one for the teacher and one for the student.
        1. The value for the column Event context for these three events has to be Page: Test Page
        2. The value for the column User full name for these events has to be the name of the user admin, t1 and s1.
        3. The value for the column Component for these events has to be H5P
        4. The value for the column Description for these events has to be "
          The user with id 'IDOFTHEUSER' has viewed the H5P with the id 'H5PID'.

          If your site is completely new, and you only have a one H5P, the IDH5P has to be 1. If not, you have to use SQL to see the H5PID in the Database in the prefix_h5p table.

      Show
      Covered by PHPUnit tests. Manual testing for event H5P viewed Use a fresh new moodle site. Login as admin. Create a new course named Course 1. Create two new users, one student named s1 and one teacher named t1. Add a new activity page named Test Page Using the Atto editor, upload the H5P attached in this issue (find-the-words-7-7.h5p). Save and display the activity. Logout and login as t1. Go to the new course and display the activity. You have to see the H5P content. Logout and login as s1. Go to the new course and display the activity. Logout and login as admin. Go to Site administration > Reports > Live logs Expected Result:  You should see three events named H5P viewed in the column Event name, one for the admin, one for the teacher and one for the student. The value for the column Event context for these three events has to be Page: Test Page The value for the column User full name for these events has to be the name of the user admin, t1 and s1. The value for the column Component for these events has to be H5P The value for the column Description for these events has to be " The user with id 'IDOFTHEUSER' has viewed the H5P with the id 'H5PID'. If your site is completely new, and you only have a one H5P, the IDH5P has to be 1. If not, you have to use SQL to see the H5PID in the Database in the prefix_h5p table.
    • H5P Sprint 3, H5P Sprint Relase 3.8

      Create 'view' event for H5P content renderer

      • View
      • Delete
      • Create/Update events will be for 3.9 when we could create a H5P Content.

            cescobedo Carlos Escobedo
            amaia Amaia Anabitarte
            Mihail Geshoski Mihail Geshoski
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 11 minutes
                1d 4h 11m

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