-
Notifications
You must be signed in to change notification settings - Fork 2
/
links.feature
126 lines (107 loc) · 4.56 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
@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 in
@createlink
Rule: Create a public link
@smoke
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> using the <menu> menu
And Alice creates link on <type> <item> with the following fields
| permission | <permission> |
| password-auto | |
| name | <name> |
Then link should be created on <item> with the following fields
| permission | <permission> |
| name | <name> |
Examples:
| type | item | permission | menu | name |
| folder | Links1 | Viewer | Actions | folderName |
| file | Links2.txt | Viewer | Contextual | fileName |
Scenario Outline: Create a public link with password created by user
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item> using the Actions menu
And Alice creates link on <type> <item> with the following fields
| permission | Viewer |
| password | <password> |
Then link should be created on <item> with the following fields
| password | <password> |
Examples:
| type | item | password |
| folder | Links3 | aa55AA..1111 |
| file | Links4.txt | aa55AA..1111 |
Scenario Outline: Create a public link with password generated automatically
Given the following items have been created in Alice account
| <type> | <item> |
When Alice selects to share the <type> <item> using the Actions menu
And Alice creates link on <type> <item> with the following fields
| permission | Viewer |
| password-auto | |
Then link should be created on <item> with the following fields
| password | <password> |
Examples:
| type | item |
| folder | Links5 |
| file | Links6.txt |
@expiration @ignore
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> using the Actions menu
And Alice creates link on <type> <item> with the following fields
| permission | Viewer |
| expiration | <expiration> |
| password-auto | |
Then link should be created on <item> with the following fields
| expiration | <expiration> |
Examples:
| type | item | expiration |
| folder | Links7 | 1 |
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> using the Actions menu
And Alice creates link on folder <item> with the following fields
| permission | <permissions> |
| password-auto | |
Then link should be created on <item> with the following fields
| permission | <permissions> |
Examples:
| item | permissions |
| Links8 | Uploader |
| Links9 | Contributor |
| Links10 | Editor |
@editlink
Rule: Edit an existing 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> using the Actions menu
And Alice edits the link on <item> with the following fields
| permissions | <permissions> |
Then link should be created on <item> with the following fields
| permissions | <permissions> |
Examples:
| item | permissions |
| Links11 | Editor |
| Links12 | Contributor |
| Links13 | Uploader |
@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> using the Contextual menu
And Alice deletes the link on <item>
Then link on <item> should not exist anymore
Examples:
| type | item |
| folder | Links14 |