dateSearch.feature: Used sharingNG for sharing in given step

This commit is contained in:
Prarup Gurung
2024-05-03 10:06:16 +05:45
parent 33eb024302
commit 1f114d66a6
2 changed files with 7 additions and 1 deletions

View File

@@ -251,6 +251,7 @@ default:
- TagContext:
- TUSContext:
- WebDavPropertiesContext:
- SharingNgContext:
apiSearch2:
paths:

View File

@@ -54,7 +54,12 @@ Feature: date search
And using spaces DAV path
And user "Alice" has created folder "sharedFolder"
And user "Alice" uploads a file "filesForUpload/textfile.txt" to "/sharedFolder/yesterday.txt" with mtime "yesterday" via TUS inside of the space "Personal" using the WebDAV API
And user "Alice" has shared folder "/sharedFolder" with user "Brian"
And user "Alice" has sent the following share invitation:
| resource | sharedFolder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
When user "Brian" searches for "Mtime:yesterday" using the WebDAV API
Then the HTTP status code should be "207"
And the search result of user "Brian" should contain these entries: