From 79c0ed58f6a355f4327fbf94fc8fad42c496fe6a Mon Sep 17 00:00:00 2001 From: nabim777 Date: Tue, 27 Jun 2023 16:15:47 +0545 Subject: [PATCH] add api test for search file through tag --- .../features/apiGraph/fullSearch.feature | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/acceptance/features/apiGraph/fullSearch.feature b/tests/acceptance/features/apiGraph/fullSearch.feature index 3eb56296864..bd375d9991a 100644 --- a/tests/acceptance/features/apiGraph/fullSearch.feature +++ b/tests/acceptance/features/apiGraph/fullSearch.feature @@ -84,6 +84,28 @@ Feature: full text search When user "Alice" searches for "Tags:tag1" using the WebDAV API Then the HTTP status code should be "207" And the search result should contain "0" entries + And the search result of user "Alice" should not contain these entries: + | file1.txt | + Examples: + | dav-path-version | + | old | + | new | + | spaces | + + + Scenario Outline: search restored files through a tag + Given using DAV path + And user "Alice" has uploaded file with content "hello world" to "file1.txt" + And user "Alice" has uploaded file with content "Namaste nepal" to "file2.txt" + And user "Alice" has created the following tags for file "file1.txt" of the space "Personal": + | tag1 | + And user "Alice" has deleted file "/file1.txt" + And user "Alice" has restored the file with original path "/file1.txt" + When user "Alice" searches for "Tags:tag1" using the WebDAV API + Then the HTTP status code should be "207" + And the search result should contain "1" entries + And the search result of user "Alice" should contain these entries: + | /file1.txt | Examples: | dav-path-version | | old |