forked from cucumber/cucumber-java-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
links.feature
179 lines (155 loc) · 6.5 KB
/
links.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
@links
Feature: Public Links
As an user
I want to handle links on my files or folders
So that the content is accessible for whom i send the link
Background: User is logged in
Given user Alice is logged
@createlink
Rule: Create a public link
@smoke @nooc10
Scenario Outline: Create a public link with name
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item>
And Alice creates link on <type> <item> with the following fields
| name | <name> |
| password-auto | |
Then link should be created on <item> with the following fields
| name | <name> |
Examples:
| type | item | name |
| folder | Links1 | link1 |
| file | Links2.txt | link2 |
@nooc10
Scenario Outline: Create a public link with custom password
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item>
And Alice creates link on <type> <item> with the following fields
| name | <name> |
| password | <password> |
Then link should be created on <item> with the following fields
| name | <name> |
| password | <password> |
Examples:
| type | item | name | password |
| folder | Links3 | link3 | aa55AA.. |
| file | Links4.txt | link4 | aa55AA.. |
@nooc10
Scenario Outline: Create a public link with generated password
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item>
And Alice creates link on <type> <item> with the following fields
| name | <name> |
| password-auto | |
Then link should be created on <item> with the following fields
| name | <name> |
| password-auto | |
Examples:
| type | item | name |
| folder | Links5 | link5 |
| file | Links6.txt | link6 |
@nooc10 @expiration
Scenario Outline: Create a public link with expiration date
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item>
And Alice creates link on <type> <item> with the following fields
| name | <name> |
| expiration days | <expiration> |
| password-auto | |
Then link should be created on <item> with the following fields
| name | <name> |
| expiration days | <expiration> |
Examples:
| type | item | name | expiration |
| folder | Links7 | link7 | 7 |
| file | Links8.txt | link8 | 17 |
@nooc10
Scenario Outline: Create a public link with permissions on a folder
Given the following items have been created in Alice account
| folder | <item> |
When Alice selects to share the folder <item>
And Alice creates link on folder <item> with the following fields
| name | <name> |
| permission | <permissions> |
| password-auto | |
Then link should be created on <item> with the following fields
| name | <name> |
| permission | <permissions> |
Examples:
| item | name | permissions | description
| Links9 | link9 | 15 | Download / View / Upload
| Links10 | link10 | 4 | Upload Only (File drop)
| Links11 | link11 | 1 | Download / View
@editlink
Rule: Edit a public link
Scenario Outline: Edit existing share on a folder, changing permissions
Given the following items have been created in Alice account
| folder | <item> |
And Alice has shared the folder <item> by link
When Alice selects to share the folder <item>
And Alice edits the link on <item> with the following fields
| permissions | <permissions> |
| name | <name> |
Then link should be edited on <item> with the following fields
| permissions | <permissions> |
| name | <name> |
Examples:
| item | name | permissions | description
| Links12 | link12 | 15 | Download / View / Upload
| Links13 | link13 | 4 | Upload Only (File drop)
| Links14 | link14 | 1 | Download / View
@nooc10
Scenario: Edit existing share on a folder, adding expiration date
Given the following items have been created in Alice account
| folder | Links15 |
And Alice has shared the folder Links15 by link
When Alice selects to share the folder Links15
And Alice edits the link on Links15 with the following fields
| expiration days | 1 |
| name | links15 |
Then link should be created on Links15 with the following fields
| expiration days | 1 |
@deletelink
Rule: Delete a public link
Scenario Outline: Delete existing link
Given the following items have been created in Alice account
| <type> | <item> |
And Alice has shared the <type> <item> by link
When Alice selects to share the <type> <item>
And Alice deletes the link on <item>
Then link on <item> should not exist anymore
Examples:
| type | item |
| folder | Links16 |
| file | Links17.txt |
@linkshortcut @noocis
Rule: Public link Shortcut
Scenario: Public link shortcut shows correct links
Given the following items have been created in Alice account
| file | Links18.txt |
| file | Links19.txt |
| folder | Links20 |
| folder | Links21 |
And Alice has shared the file Links18.txt by link
And Alice has shared the folder Links20 by link
When Alice opens the public link shortcut
Then Alice should see Links18.txt in the list
And Alice should see Links20 in the list
But Alice should not see Links19.txt in the links list
And Alice should not see Links21 in the links list
Scenario: Remove from link shortcut
Given the following items have been created in Alice account
| file | Links22.txt |
And Alice has shared the file Links22.txt by link
When Alice opens the public link shortcut
And Alice selects to share the file Links22.txt
And Alice deletes the link on Links22.txt
And Alice closes share view
And Alice refreshes the list
Then Alice should not see Links22.txt in the offline list
And Alice should see the following message
| No shared links |