-
Functional Test
-
Minor
-
Moodle 4.3
Setup
- Login as teacher and go to a course.
- Add a database activity (with the default configuration).
- Create one field (it can be from any type and have any name).
- Access the database activity and go to the "Templates" tab.
- Click the "Publish preset on this site" option from Actions menu.
- Give a valid name and a description and save the new preset.
- Click the "Save as preset" button again.
- 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
- Access the database activity and go to the "Presets" tab.
- Open the Action menu for the Saved preset with description and select "Export".
- Check a .zip file is downloaded.
- Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...).
- Open preset.xml.
- Check it contains a description element which should contain the preset description.
Testing scenario 2. Export saved preset without description
- Access the database activity and go to the "Presets" tab.
- Open the Action menu for the Saved preset without description and select "Export".
- Check a .zip file is downloaded.
- Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...).
- Open preset.xml.
- Check it contains a description element (which should be empty).
Testing scenario 3. Export preset keeps working as expected
- Access the database activity and go to the "Templates" tab.
- Click the "Export preset" option from the Actions menu.
- Check a .zip file is downloaded.
- Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...).
- Open preset.xml.
- Check it contains a description element (which should be empty).
- is a QA test written for
-
MDL-75186 Add "Export" preset feature to presets list
- Closed