Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-1749

A teacher can drag and drop a file into the course page

    XMLWordPrintable

Details

    • Functional Test
    • Minor
    • None
    • Original - DO NOT REPORT TEST RESULTS HERE
    • Course, Teacher
    • None

    Description

      Prerequisites

      • Download the attached files:
      • Open your file browser with the download folder where you download the files
      • Create a course in topic format with at least 2 topics.
      • Set the "Administration -> Security -> Site security settings -> Maximum uploaded file size" setting (called "maxbytes") to 1MB.

      Admin test

      1. Log in as an admin and go to the course with edit mode on
      2. Select all files in the file browser and drag them into Topic 1
        1. Check a modal asking what to do with the first H5P file that appears
        2. Check the default selected option is "Create file resource"
        3. Select "Add an H5P activity" and submit
      3. A second modal appears for the second H5P file
        1. Check the default selected option is "Add an H5P activity"
        2. Submit the modal
      4. Check a process monitor appears a few seconds in the bottom right part of the page.
      5. Check there are 4 new activities in Topic 1: 2 x resources and 2 x H5P activities.

      Teacher test

      1. Log in as a teacher and go to the course with edit mode on
      2. Select all files in the file browser and drag them into Topic 2
        1. Check a modal asking what to do with the first H5P shows
        2. Check the default selected option is "Create file resource"
        3. Select "Add an H5P activity" and submit
      3. A second modal appears for the second H5P file
        1. Check the default selected option is "Add an H5P activity"
        2. Submit the modal
      4. Check a process monitor appears in the bottom right part of the page.
      5. Check there are 3 new activities in Topic 2: 1 x resources and 2 x H5P activities.
      6. After 10 seconds:
        1. Check the progress monitor keeps open with only the error process displayed
        2. Check the progress in the monitor displays a "The file is too large"
      7. Click the "X" icon (close) in the progress monitor with the error
        1. Check theĀ  progress monitor disappears.

      Repeat the test in more than one browser and mention in a comment which ones you've used.

      Attachments

        1. third.txt
          0.0 kB
        2. second.h5p
          721 kB
        3. fourth.patata
          2.01 MB
        4. first.h5p
          530 kB

        Activity

          People

            Unassigned Unassigned
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Clockify

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