-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathtrashbinDelete.feature
81 lines (73 loc) · 3.84 KB
/
trashbinDelete.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@files_trashbin-app-required @skipOnOCIS @issue-ocis-phoenix-118
Feature: files and folders can be deleted from the trashbin
As a user
I want to delete files and folders from the trashbin
So that I can control my trashbin space and which files are kept in that space
Background:
Given user "user1" has been created with default attributes
And user "user1" has created file "sample,1.txt"
And user "user1" has created folder "Folder,With,Comma"
And user "user1" has logged in using the webUI
And the following files have been deleted by user "user1"
| name |
| data.zip |
| lorem.txt |
| lorem-big.txt |
| simple-folder |
| sample,1.txt |
| Folder,With,Comma |
And the user has browsed to the trashbin page
@smokeTest
@yetToImplement
Scenario: Delete files and check that they are gone
When the user deletes file "lorem.txt" using the webUI
And the user deletes file "sample,1.txt" using the webUI
# phoenix does not yet support navigating into deleted folders
# And the user opens folder "simple-folder" using the webUI
# And the user deletes file "lorem-big.txt" using the webUI
Then file "lorem.txt" should not be listed on the webUI
Then file "sample,1.txt" should not be listed on the webUI
# But file "lorem.txt" should be listed in the trashbin folder "simple-folder" on the webUI
# And file "lorem-big.txt" should not be listed in the trashbin folder "simple-folder" on the webUI
But file "lorem-big.txt" should be listed on the webUI
Scenario: Delete folders and check that they are gone
When the user deletes folder "simple-folder" using the webUI
And the user deletes folder "Folder,With,Comma" using the webUI
Then folder "simple-folder" should not be listed on the webUI
And folder "Folder,With,Comma" should not be listed on the webUI
Scenario: Select some files and delete from trashbin in a batch
When the user batch deletes these files using the webUI
| name |
| lorem.txt |
| lorem-big.txt |
Then the deleted elements should not be listed on the webUI
And the deleted elements should not be listed on the webUI after a page reload
But file "data.zip" should be listed on the webUI
And folder "simple-folder" should be listed on the webUI
And the user browses to the files page
And file "lorem.txt" should not be listed on the webUI
And file "lorem-big.txt" should not be listed 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 file "lorem.txt" should be listed on the webUI
And file "lorem-big.txt" should be listed on the webUI
But file "data.zip" should not be listed on the webUI
And 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
Then the folder should be empty on the webUI
Scenario: Delete single file from deleted files list
When the user deletes the file "lorem.txt" from the deleted files list
Then file "lorem.txt" should not be listed on the webUI
When the user reloads the current page of the webUI
Then file "lorem.txt" should not be listed on the webUI
Scenario: Clear trashbin
When the user clears the trashbin
Then the success message with header "Trash bin was successfully emptied" should be displayed on the webUI
And the trashbin should be empty on the webUI