-
Functional Test
-
Blocker
-
Moodle 4.3
-
None
A file can be added to a folder resource
- Log in as teacher, go to a course, turn editing on and add a folder resource.
- Enter a name, then drag and drop a file into the Files area.
- Verify that a progress bar is displayed while the file is uploading.
- Verify that thumbnail image and name of the file is displayed in the Files area.
- Click 'Save and display' and verify that a link to the file is displayed.
- QA-1763 - Click 'Edit' button and drag and drop 2 files at the same time into the Files area.
- Verify that a progress bar is displayed for each file while the files are uploading.
- Verify that thumbnail images and names of the files are displayed in the Files area.
- Click 'Save and display' and verify that links to the files are displayed.
- Click the 'Edit' button then in the Files area, click the 'Add...'.
- Select 'Upload a file' then browse and select a file.
- Click 'Upload this file' and verify that a thumbnail image and name of the file is displayed in the Files area.
- Click 'Save changes' and verify that a link to the file is displayed.
- Click 'Edit' button then in the Files area, click the 'Create folder' icon.
- Enter a name and click the 'Create folder' button.
- Verify that the folder is displayed in the Files area.
- Click 'Save changes' and verify that the folder is displayed.
- Click a link to one of the files and verify that it is correctly downloaded.
- Click 'Download folder' and verify that all files and folders are correctly downloaded in a zip file.
QA-1746 -Files are not uploaded when the user cancels.
- Click 'Edit' button again.
- Click 'Add' and select 'Upload a file' and select a file.
- Enter a value for Save As.
- Change the name of the author and the licence type.
- Select Upload this file then verify that the file appears in the File Manager and that the details are correct.
- Click 'Cancel' button and verify that the files are not uploaded.
QA-1761 - Folder creation can be cancelled by clicking X
- Click 'Edit' button again.
- Click 'Create folder' and verify that the create folder dialog is launched.
- Enter a folder name and Click the X on the create folder dialog.
- Verify that the dialog closes and your changes have not been saved.
- Click 'Create folder' again.
- Enter a folder name and click 'Create'.
- Verify that the new folder is displayed in the file manager area.
- Click on the folder and verify that you are taken to an area in the file manager containing sub folders and/or a file drop area and that there is a breadcrumb trail to your current location (breadcrumbs are not shown in tree view).
- Drag and drop a file onto the file manager.
- Click 'Save changes' and verify that the files have been uploaded.
QA-1767 - A file can be picked from private files and a shortcut can be made.
- On the user menu, click "Private files" and add a file.
- Back to the folder resource and click 'Edit'.
- Click 'Add' and select 'Private files'
- Select the file you have uploaded, click the 'Create an alias/shortcut to the file' radio button.
- Click 'Select this file' and verify that the files have been added.
- Click 'Save changes' and verify that a shortcut has been added.