diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index abc8e247e28..42095733177 100644 --- a/tests/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml @@ -164,16 +164,30 @@ default: - '%paths.base%/../features/apiAntivirus' context: *common_ldap_suite_context contexts: - - NotificationContext: + - SettingsContext: + - GraphContext: - SpacesContext: - FeatureContext: *common_feature_context_params - OCSContext: - - GraphContext: - FilesVersionsContext: - - SettingsContext: - OcisConfigContext: - PublicWebDavContext: + apiFullTextSearch: + paths: + - '%paths.base%/../features/apiFullTextSearch' + context: *common_ldap_suite_context + contexts: + - SettingsContext: + - GraphContext: + - SpacesContext: + - PublicWebDavContext: + - FeatureContext: *common_feature_context_params + - SearchContext: + - CapabilitiesContext: + - FilesVersionsContext: + - OCSContext: + extensions: rdx\behatvars\BehatVariablesExtension: ~ diff --git a/tests/acceptance/features/apiFullTextSearch/search.feature b/tests/acceptance/features/apiFullTextSearch/search.feature new file mode 100644 index 00000000000..e808fcd3390 --- /dev/null +++ b/tests/acceptance/features/apiFullTextSearch/search.feature @@ -0,0 +1,24 @@ +@api +Feature: full text search + As a user + I want to do full text search + So that I can find the files with the content I am looking for + + Background: + Given user "Alice" has been created with default attributes and without skeleton files + + Scenario Outline: search files by content + 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 uploaded file with content "hello nepal" to "file3.txt" + When user "Alice" searches for "Content:hello" using the WebDAV API + Then the HTTP status code should be "207" + And the search result of user "Alice" should contain only these files: + | file1.txt | + | file3.txt | + Examples: + | dav-path-version | + | old | + | new | + | spaces |