-
Functional Test
-
Major
-
Moodle 4.4
Prerequisite
- A user and a assignment activity.
QA-1451, QA-1743 - A user has a private files area and files can be used as submission
- Log in as a student and go to Private files in the user menu.
- Click the add button and upload (or drag and drop) a file.
- Enter a value for 'Save As', 'Author' and the licence type and click 'Upload this file'.
- Click on the uploaded file and verify details are correct.
- Now create a folder.
- Move the file into the folder. (Click on file and then change the Path to the new folder created.)
- Zip the folder (Right click on folder and then press zip button)
- Rename the zip file (Right click on zip file, change name of file and click update)
- Click the Save changes button.
- Go to an assignment which allows file uploads, click the 'Add submission' button and choose 'Private files' in the file picker.
- Select the file, then click the 'Save changes' button.
- Check that the file is shown as the assignment submission.
QA-1745 - File upload can be cancelled by clicking X or Cancel button
- Turn editing mode on and add "Private files" block to your Dashboard.
- Follow "Manage private files..." in 'Private files' block.
- Click 'Add' and verify that the file picker is launched.
- Select 'Upload a file' and select a file.
- Click on X in the top right hand corner and verify that the dialog closes and your changes have not been saved.
- Click 'Add' again.
- Select 'Upload a file', select a file and click 'Upload this file'.
- Note the file has been added to the file manager.
- Click 'Cancel' button and verify the dialog closes and the file is not added to your private files.
QA-1757, QA-1759 - Folders can be created into the file manager area and files can be dragged into the area to upload them.
- Follow "Manage private files..." in 'Private files' block.
- Click 'Create folder' icon the 'Private files' block.
- Click the X on the create folder dialog, then verify that the dialog closes and your changes have not been saved.
- Click 'Create folder' icon again.
- Enter a folder name and click 'Create folder' button.
- Click on the folder and verify that there's a breadcrumb trail to your current location
- - Note that breadcrumbs are not shown in "tree view".
- Drag and drop a file onto the file manager, which currently contains the text 'You can drag and drop files here to add them.'
- Click 'Save changes' and verify that the files have been uploaded.
QA-1762 - Multiple files can be dragged and dropped onto the file manager.
- Follow "Manage private files..." in 'Private files' block.
- Select 2 files at once and drag them both simultaneously into the file manager area.
- Click 'Save changes' and verify that the files have been uploaded.