From 997187226f5e46b7e84b0ed4e5f95fb53344d6eb Mon Sep 17 00:00:00 2001 From: Karun Atreya <33852651+KarunAtreya@users.noreply.github.com> Date: Wed, 16 Aug 2023 12:41:55 +0545 Subject: [PATCH] added scenario for searching inside folder in shares (#6982) --- .../acceptance/features/apiSpaces/search.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/acceptance/features/apiSpaces/search.feature b/tests/acceptance/features/apiSpaces/search.feature index b59e0b3e01..800d6c6486 100644 --- a/tests/acceptance/features/apiSpaces/search.feature +++ b/tests/acceptance/features/apiSpaces/search.feature @@ -120,3 +120,19 @@ 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 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 |