Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18402

CLONE - A teacher can export database presets

XMLWordPrintable

      Setup

      1. Login as teacher and go to a course.
      2. Add a database activity (with the default configuration).
      3. Create one field (it can be from any type and have any name).
      4. Access the database activity and go to the "Templates" tab.
      5. Click the "Publish preset on this site" option from Actions menu.
      6. Give a valid name and a description and save the new preset.
      7. Click the "Save as preset" button again.
      8. Give it a valid name (different from the previous one), leave the description empty and save the new preset.

      Testing scenario 1. Export saved preset with description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset with description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element which should contain the preset description.

      Testing scenario 2. Export saved preset without description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset without description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).

      Testing scenario 3. Export preset keeps working as expected

      1. Access the database activity and go to the "Templates" tab.
      2. Click the "Export preset" option from the Actions menu.
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).

        1. 1_step4.png
          1_step4.png
          93 kB
        2. 1_step6.png
          1_step6.png
          192 kB
        3. 2_step4.png
          2_step4.png
          38 kB
        4. 2_step6.png
          2_step6.png
          65 kB
        5. 3_step4.png
          3_step4.png
          40 kB
        6. 3_step6.png
          3_step6.png
          77 kB

            david.woloszyn@moodle.com David Woloszyn
            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.