Behat: Rationalise tests for file and folder upload/edit/delete

Bug #1891430 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Medium
Rangi Daymond

Bug Description

This bug report incorporates automating manual tests and merging two tests with duplicated functionality.

These changes should be made after this Bug is complete: https://bugs.launchpad.net/mahara/+bug/1891426. It can be either a child patch or made after that patch is merged.

1. Merge the functionality of:
/user_content/file_edit.feature
/download_files_block.feature

Make sure that the current functionality from both tests is still represented. Rename the merged test files_folders.feature. It can be the core test for this functionality.

2. Automating manual test. These are the details from the spreadsheet:

Upload a file - Page elements present

Following blocks as follows
- User info block ✔
- On line users block ✔
- Quota Block ✔
- Profile completion (if turned on) ✔
Upload file area ✔
File browser table – displaying all uploaded files ✔

Add tests to make sure the correct blocks are on the page. We don't care if they contain the right info or if they work. The functionality is tested elsewhere.

3. Automating manual test. These are the details from the spreadsheet:

 User can do the following
- Drag and drop files ✘
- Create folders ✔
- Download files ✔
- Edit a file or folder ✔
- Delete a file or folder ✔

We can't test drag and drop, or that download works, but we can test the other things via behat.

Edit the new files_folders.feature to include a check for
a. editing the folder name: I press "Edit folder \"<name>\""
b. deleting the folder

Tags: behat-test
description: updated
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.