Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16759 Moodle 4.1 QA
  3. MDLQA-17353

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).

            meowmiomew Ron Carl Alfon Yu
            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.