-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathversions.feature
87 lines (78 loc) · 4.93 KB
/
versions.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
82
83
84
85
86
87
@files_versions-app-required
Feature: Versions of a file
As a user
I would like to see different versions of a file and delete and restore them
So that I can have more control over the files
Background:
Given these users have been created with default attributes and without skeleton files:
| username |
| user0 |
| Alice |
@disablePreviews @skipOnOC10 @issue-5853
Scenario: upload new file with same name to see if different versions are shown
Given user "user0" has logged in using the webUI
And user "user0" has uploaded file "lorem.txt" to "lorem.txt"
And the user has browsed to the files page
And user "user0" has uploaded file with content "lorem content" to "lorem.txt"
And user "user0" has uploaded file with content "new lorem content" to "lorem.txt"
When the user browses to display the "versions" details of file "lorem.txt"
Then the content of file "lorem.txt" for user "user0" should be "new lorem content"
And the versions list should contain 2 entries
Scenario: restoring file to old version changes the content of the file
Given user "user0" has uploaded file with content "lorem content" to "lorem-file.txt"
And user "user0" has uploaded file with content "new lorem content" to "lorem-file.txt"
And user "user0" has logged in using the webUI
And the user has browsed to the files page
When the user browses to display the "versions" details of file "lorem-file.txt"
And the user restores the file to last version using the webUI
Then the content of file "lorem-file.txt" for user "user0" should be "lorem content"
@ocis-reva-issue-110
@skipOnStorage:ceph @files_primary_s3-issue-1
Scenario: file versions cannot be seen on the webUI after deleting versions
Given user "user0" has uploaded file with content "lorem content" to "lorem-file.txt"
And user "user0" has uploaded file with content "lorem" to "lorem-file.txt"
And user "user0" has uploaded file with content "new lorem content" to "lorem-file.txt"
And user "user0" has logged in using the webUI
And the administrator has cleared the versions for user "user0"
When the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
@ocis-reva-issue-110
@skipOnStorage:ceph @files_primary_s3-issue-155
Scenario: file versions cannot be seen on the webUI only for user whose versions is deleted
Given user "user0" has uploaded file with content "lorem content" to "lorem-file.txt"
And user "user0" has uploaded file with content "lorem" to "lorem-file.txt"
And user "Alice" has uploaded file with content "lorem content" to "lorem-file.txt"
And user "Alice" has uploaded file with content "lorem" to "lorem-file.txt"
And user "user0" has logged in using the webUI
And the administrator has cleared the versions for user "user0"
When the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
When the user re-logs in as "Alice" using the webUI
And the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 1 entries
@ocis-reva-issue-110
@skipOnStorage:ceph @files_primary_s3-issue-155
Scenario: file versions cannot be seen on the webUI for all users after deleting versions for all users
Given user "user0" has uploaded file with content "lorem content" to "/lorem-file.txt"
And user "user0" has uploaded file with content "lorem" to "/lorem-file.txt"
And user "Alice" has uploaded file with content "lorem content" to "/lorem-file.txt"
And user "Alice" has uploaded file with content "lorem" to "/lorem-file.txt"
And user "user0" has logged in using the webUI
And the administrator has cleared the versions for all users
When the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
When the user re-logs in as "Alice" using the webUI
And the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
@issue-ocis-2319
Scenario: change the file content of a received shared file
Given the setting "shareapi_auto_accept_share" of app "core" has been set to "no"
And the administrator has set the default folder for received shares to "Shares"
And user "user0" has uploaded file with content "a text file" to "lorem.txt"
And user "user0" has shared file "lorem.txt" with user "Alice" with "all" permissions
And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "user0"
And user "Alice" has logged in using the webUI
When the user opens folder "Shares" using the webUI
And the user uploads overwriting file "lorem.txt" using the webUI
And the user browses to display the "versions" details of file "lorem.txt"
Then the versions list should contain 1 entries