@@ -8,6 +8,7 @@ Feature: Search
8
8
| id |
9
9
| Alice |
10
10
| Brian |
11
+ | Carol |
11
12
And "Brian" logs in
12
13
And "Brian" creates the following folder in personal space using API
13
14
| name |
@@ -87,8 +88,51 @@ Feature: Search
87
88
| folder |
88
89
| FolDer |
89
90
| .hidden -file .txt |
91
+ And "Alice" opens the "files" app
92
+
93
+ # search renamed resources
94
+ When "Alice" renames the following resource
95
+ | resource | as |
96
+ | folder | renamedFolder |
97
+ | FolDer | renamedFolDer |
98
+ And "Alice" searches "rena" using the global search and the "all files" filter
99
+ Then following resources should be displayed in the search list for user "Alice"
100
+ | resource |
101
+ | renamedFolder |
102
+ | renamedFolDer |
103
+ But following resources should not be displayed in the search list for user "Alice"
104
+ | resource |
105
+ | folder |
106
+ | FolDer |
107
+
108
+ And "Alice" navigates to the shared with me page
109
+ When "Alice" reshares the following resource
110
+ | resource | recipient | type | role | resourceType |
111
+ | new_share_from_brian | Carol | user | Can view | folder |
112
+ | new -lorem -big .txt | Carol | user | Can view | file |
90
113
And "Alice" logs out
91
114
115
+ # search re-shared resources
116
+ When "Carol" logs in
117
+ And "Carol" navigates to the shared with me page
118
+ And "Carol" accepts the following share
119
+ | name |
120
+ | new_share_from_brian |
121
+ | new -lorem -big .txt |
122
+ And "Carol" opens the "files" app
123
+ And "Carol" creates the following resources
124
+ | resource | type |
125
+ | folder | folder |
126
+ And "Carol" searches "NEW" using the global search and the "all files" filter
127
+ Then following resources should be displayed in the search list for user "Carol"
128
+ | resource |
129
+ | new_share_from_brian |
130
+ | new -lorem -big .txt |
131
+ But following resources should not be displayed in the search list for user "Carol"
132
+ | resource |
133
+ | folder |
134
+ And "Carol" logs out
135
+
92
136
93
137
Scenario : Search using "current folder" filter
94
138
Given "Admin" creates following users using API
0 commit comments