Skip to content

Commit

Permalink
added scenario for searching inside folder in shares
Browse files Browse the repository at this point in the history
  • Loading branch information
KarunAtreya committed Aug 9, 2023
1 parent 96e5e2e commit b5ea953
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/acceptance/features/apiSpaces/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,20 @@ Feature: Search
| /SubFolder1/subFOLDER2/insideTheFolder.txt |
But the search result of user "Alice" should not contain these entries:
| /folderMain |


Scenario: search inside folder in shares
Given user "Alice" has created a share inside of space "find data" with settings:
| path | folderMain |
| shareWith | Brian |
| role | viewer |
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "folder" inside folder "/folderMain" in space "Shares" using the WebDAV API
Then the HTTP status code should be "207"
And the search result should contain "3" entries
And the search result of user "Brian" should contain only these entries:
| /SubFolder1 |
| /SubFolder1/subFOLDER2 |
| /SubFolder1/subFOLDER2/insideTheFolder.txt |
But the search result of user "Brian" should not contain these entries:
| /folderMain |

0 comments on commit b5ea953

Please sign in to comment.