Skip to content

Commit

Permalink
webUI trashbin tests for partial unselection
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Apr 6, 2018
1 parent 3646068 commit 3806383
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/acceptance/features/webUITrashbin/restore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ So that I can recover accidentally deleted files/folders in ownCloud
But the file "data.zip" should not be listed in the files page on the webUI
And the folder "simple-folder" should not be listed in the files page on the webUI

Scenario: Select all except for some trashbin files and restore them in a batch
Given the following files have been deleted
| name |
| data.zip |
| lorem.txt |
| lorem-big.txt |
| simple-folder |
And the user has browsed to the trashbin page
When the user marks all files for batch action using the webUI
And the user unmarks these files for batch action using the webUI
| name |
| lorem.txt |
| lorem-big.txt |
And the user batch restores the marked files using the webUI
Then the file "lorem.txt" should be listed on the webUI
And the file "lorem-big.txt" should be listed on the webUI
But the file "data.zip" should not be listed on the webUI
And the folder "simple-folder" should not be listed on the webUI
And the file "data.zip" should be listed in the files page on the webUI
And the folder "simple-folder" should be listed in the files page on the webUI
But the file "lorem.txt" should not be listed in the files page on the webUI
And the file "lorem-big.txt" should not be listed in the files page on the webUI

Scenario: Select all trashbin files and restore them in a batch
Given the following files have been deleted
| name |
Expand Down
12 changes: 12 additions & 0 deletions tests/acceptance/features/webUITrashbin/trashbinDelete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ Feature: files and folders can be deleted from the trashbin
And the file "lorem.txt" should not be listed in the files page on the webUI
And the file "lorem-big.txt" should not be listed in the files page on the webUI

Scenario: Select all except for some files and delete from trashbin in a batch
When the user marks all files for batch action using the webUI
And the user unmarks these files for batch action using the webUI
| name |
| lorem.txt |
| lorem-big.txt |
And the user batch deletes the marked files using the webUI
Then the file "lorem.txt" should be listed on the webUI
And the file "lorem-big.txt" should be listed on the webUI
But the file "data.zip" should not be listed on the webUI
And the folder "simple-folder" should not be listed on the webUI

Scenario: Select all files and delete from trashbin in a batch
When the user marks all files for batch action using the webUI
And the user batch deletes the marked files using the webUI
Expand Down

0 comments on commit 3806383

Please sign in to comment.