Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17385 Moodle 4.2 QA
  3. MDLQA-17605

CLONE - A teacher can drag and drop an image onto a course page



    • Functional Test
    • Minor
    • Moodle 4.2
    • Moodle 4.2
    • Course, Teacher
    • None


      Note: This test must be carried out with a browser supporting drag and drop (Chrome, Firefox, Safari, Edge)

      1. As administrator, visit Settings > Site admin > Plugins > Activity modules > Text And Media and verify the box 'media drag and drop' setting is ticked.
      2. Make a note of the max width and height for dragged and dropped images (default 400).
      3. As a teacher in a course with the editing turned on, drag an image (.jpg/.png/.gif/.svg) onto the course page. using an image larger than the max dimensions set.
      4. Verify that you are asked whether you want to add the image to the course page or create a file resource. Choose "add media to course page".
      5. Verify that the image appears embedded in a label.
      6. Refresh the page and ensure the image is still embedded.
      7. Verify the image has been resized to the max dimensions checked in step 2.
      8. Using the label edit icons, verify that the image can be moved, hidden, modified and deleted.
      9. As admin, visit Settings > Site admin > plugins > activity modules > Text And Media and disable (remove the tick from) the 'media drag and drop' setting.
      10. Drag and drop another image.
      11. Verify that this time the image is uploaded immediately as a resource with no offer to add to the course page.
      12. Repeat the test with other browsers supporting drag and drop.


        1. Screenshot from 2023-03-29 11-53-51.png
          Screenshot from 2023-03-29 11-53-51.png
          97 kB
        2. Screenshot from 2023-03-29 11-56-27.png
          Screenshot from 2023-03-29 11-56-27.png
          108 kB
        3. Screenshot from 2023-03-29 11-58-36.png
          Screenshot from 2023-03-29 11-58-36.png
          308 kB
        4. Screenshot from 2023-03-29 12-02-51.png
          Screenshot from 2023-03-29 12-02-51.png
          216 kB
        5. step 11 chrome.mov
          28.86 MB
        6. step 11 edge.mov
          57.25 MB
        7. step 11 firefox.mov
          15.57 MB
        8. step 11 safari.mov
          18.10 MB



            stevani.andolo@moodle.com Stevani Andolo
            0 Vote for this issue
            1 Start watching this issue




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