From 16b6f58af6521bcfcb7b4be4ae35bcdc2fad088b Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:05:41 +0545 Subject: [PATCH] Add tests for searching for resources with whitespace chars in its name (#7619) --- .../features/apiSearch/apiSpaceSearch.feature | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tests/acceptance/features/apiSearch/apiSpaceSearch.feature b/tests/acceptance/features/apiSearch/apiSpaceSearch.feature index 5db58b3ea05..715ad2c8405 100644 --- a/tests/acceptance/features/apiSearch/apiSpaceSearch.feature +++ b/tests/acceptance/features/apiSearch/apiSpaceSearch.feature @@ -217,6 +217,42 @@ Feature: Search | new | | spaces | + @issue-7114 + Scenario Outline: search files inside the folder with white space character in its name + Given using DAV path + And user "Alice" has created folder "/New Folder" + And user "Alice" has uploaded file with content "hello world inside folder" to "/New Folder/file.txt" + And user "Alice" has created folder "/New Folder/Sub Folder" + And user "Alice" has uploaded file with content "hello world inside sub folder" to "/New Folder/Sub Folder/file1.txt" + When user "Alice" searches for "*file*" inside folder "/New Folder" using the WebDAV API + Then the HTTP status code should be "207" + And the search result of user "Alice" should contain only these entries: + | /New Folder/file.txt | + | /New Folder/Sub Folder/file1.txt | + Examples: + | dav-path-version | + | old | + | new | + | spaces | + + @issue-7114 + Scenario Outline: search files with white space character in its name + Given using DAV path + And user "Alice" has created folder "/New Folder" + And user "Alice" has uploaded file with content "hello world" to "/new file.txt" + And user "Alice" has created folder "/New Folder/New Sub Folder" + When user "Alice" searches for "*new*" using the WebDAV API + Then the HTTP status code should be "207" + And the search result of user "Alice" should contain only these entries: + | /New Folder | + | /New Folder/New Sub Folder | + | /new file.txt | + Examples: + | dav-path-version | + | old | + | new | + | spaces | + @issue-enterprise-6000 @issue-7028 @issue-7092 Scenario Outline: sharee cannot find resources that are not shared Given using DAV path