-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathfavorites.feature
More file actions
113 lines (104 loc) 路 4.13 KB
/
Copy pathfavorites.feature
File metadata and controls
113 lines (104 loc) 路 4.13 KB
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
Feature: Favorites
As a user
I want to mark resources as favorites and find them in the favorites section
Background:
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
Scenario: mark resources as favorites
Given "Admin" assigns following role to the users using API
| id | role |
| Alice | Space Admin |
And "Alice" creates the project space using API "service-team"
And "Alice" adds the following member to the space "service-team" using API
| user | role | shareType |
| Brian | Can view | user |
And "Alice" creates the following folder in personal space using API
| name |
| shared |
And "Alice" uploads the following local file into personal space using API
| localFile | to |
| testavatar.jpg | shared/testavatar.jpg |
And "Alice" shares the following resource using API
| resource | recipient | type | role |
| shared | Brian | user | Can edit |
And "Brian" uploads the following local file into personal space using API
| localFile | to |
| user-avatar.png | image.png |
| test_video.mp4 | video.mp4 |
And "Brian" logs in
And "Brian" navigates to the shared with me page
And "Brian" opens folder "shared"
When "Brian" marks the following resource as favorite using "context menu"
| resource |
| testavatar.jpg |
And "Brian" navigates to the personal space page
And "Brian" marks the following resource as favorite using "batch action"
| resource |
| image.png |
And "Brian" opens the following file in mediaviewer
| resource |
| video.mp4 |
And "Brian" is in a media-viewer
And "Brian" marks the following resource as favorite using "preview"
| resource |
| video.mp4 |
And "Brian" closes the file viewer
And "Brian" navigates to the favorites page
And following resources should be displayed in the files list for user "Brian"
| resource |
| testavatar.jpg |
| image.png |
| video.mp4 |
And "Brian" removes the following resource from favorites using "context menu"
| resource |
| image.png |
And following resource should not be displayed in the files list for user "Brian"
| resource |
| image.png |
And "Brian" removes the following resource from favorites using "batch action"
| resource |
| video.mp4 |
And following resource should not be displayed in the files list for user "Brian"
| resource |
| video.mp4 |
And "Brian" logs out
Scenario: mark and unmark resources as favorites using batch action
Given "Brian" uploads the following local file into personal space using API
| localFile | to |
| user-avatar.png | image.png |
| simple.pdf | simple.pdf |
| lorem.txt | lorem.txt |
And "Brian" logs in
And "Brian" navigates to the personal space page
And "Brian" marks the following resources as favorite using "batch action"
| resource |
| image.png |
| simple.pdf |
| lorem.txt |
And "Brian" navigates to the favorites page
And following resources should be displayed in the files list for user "Brian"
| resource |
| image.png |
| simple.pdf |
| lorem.txt |
And "Brian" removes the following resources from favorites using "batch action"
| resource |
| image.png |
| simple.pdf |
And following resources should not be displayed in the files list for user "Brian"
| resource |
| image.png |
| simple.pdf |
And "Brian" navigates to the personal space page
And "Brian" removes the following resources from favorites using "batch action"
| resource |
| lorem.txt |
And "Brian" navigates to the favorites page
And following resources should not be displayed in the files list for user "Brian"
| resource |
| image.png |
| simple.pdf |
| lorem.txt |
And "Brian" logs out