-
Functional Test
-
Blocker
-
None
-
Moodle QA non-runners
-
None
Test Pre-requisites:
- A folder resource.
Note: It is not necessary to test uploading a very large file. A file of size less than 20MB should be used in this test.
Test 1 using drag and drop
- Log in as a teacher. Navigate to the folder resource and click 'Edit'. Verify that the File manager form element is displayed onscreen.
- Drag and drop a file onto the file manager, which currently contains the text 'You can drag and drop files here to add them.'
- Check that the filename + progress bar is displayed as expected
- Check the progress bars are hidden and the normal icon/thumbnail is shown once the upload is complete
- Drag 2 more files (at the same time) into the area
- check the filenames + progress bars are both shown
- check the progress bars are hidden and the normal icon/thumbnail is shown once the upload is complete
- Click 'Save changes' and verify that the files have been uploaded.
- Download the file to verify that the file link has been created properly.
- Log in as a Student and download the file, then verify that the file is correct.
- Log in as Teacher and delete all the files - check the drag & drop message is displayed correctly
Test 2 using file picker
- Log in as a teacher. Navigate to the folder resource and click 'Edit'. Verify that the File manager form element is displayed onscreen.
- Click "Create folder" and verify that folder is created.
- Click folder created above and click "Create folder" again and verify a new folder is created.
- Click folder icon which was last created and click 'Add' and verify that the file picker is launched.
- Select 'Upload a file', choose a file to upload and upload it.
- Click 'Save changes' and verify that the files have been uploaded.
- Edit Folder resource and check "Show subfolders expanded"
- View folder resource and make sure folder view is expanded
- Edit Folder resource and uncheck "Show subfolders expanded"
- View folder resource and make sure folder is collapsed and by clicking you can expand it.
- Download the file to verify that the file link has been created properly.
- Log in as a Student and download the file, then verify that the file is correct.
- is a QA test written for
-
MDL-30790 Folder tree should have option to be collapsed or expanded after loading the page
- Closed