Skip to content

Commit b236707

Browse files
committed
add e2e tests for searching renamed and reshared resources
1 parent 6bca0b2 commit b236707

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

tests/e2e/cucumber/features/smoke/search.feature

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Feature: Search
88
| id |
99
| Alice |
1010
| Brian |
11+
| Carol |
1112
And "Brian" logs in
1213
And "Brian" creates the following folder in personal space using API
1314
| name |
@@ -87,8 +88,51 @@ Feature: Search
8788
| folder |
8889
| FolDer |
8990
| .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 |
90113
And "Alice" logs out
91114

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+
92136

93137
Scenario: Search using "current folder" filter
94138
Given "Admin" creates following users using API

0 commit comments

Comments
 (0)