2022-08-26 10:40:30 +05:45
|
|
|
Feature: favorite
|
2023-04-17 17:05:12 +05:45
|
|
|
As a user
|
2023-04-21 14:59:50 +05:45
|
|
|
I want to favorite resources
|
2023-04-20 15:30:13 +05:45
|
|
|
So that I can access them quickly
|
2022-08-26 10:40:30 +05:45
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2022-08-26 10:40:30 +05:45
|
|
|
| username |
|
|
|
|
|
| Alice |
|
|
|
|
|
| Brian |
|
|
|
|
|
And using spaces DAV path
|
|
|
|
|
And user "Alice" has created folder "/PARENT"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: favorite a received share itself
|
2024-05-08 14:22:52 +05:45
|
|
|
Given user "Alice" has sent the following resource share invitation:
|
2024-05-08 09:45:36 +05:45
|
|
|
| resource | PARENT |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Editor |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "PARENT" synced
|
2022-10-20 20:49:57 +02:00
|
|
|
When user "Brian" favorites element "/PARENT" in space "Shares" using the WebDAV API
|
2022-08-26 10:40:30 +05:45
|
|
|
Then the HTTP status code should be "207"
|
2022-10-20 20:49:57 +02:00
|
|
|
And as user "Brian" folder "/PARENT" inside space "Shares" should be favorited
|
2022-08-26 10:40:30 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: favorite a file inside of a received share
|
|
|
|
|
Given user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
2024-05-08 14:22:52 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
2024-05-08 09:45:36 +05:45
|
|
|
| resource | PARENT |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Editor |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "PARENT" synced
|
2022-10-20 20:49:57 +02:00
|
|
|
When user "Brian" favorites element "/PARENT/parent.txt" in space "Shares" using the WebDAV API
|
2022-08-26 10:40:30 +05:45
|
|
|
Then the HTTP status code should be "207"
|
2022-10-20 20:49:57 +02:00
|
|
|
And as user "Brian" file "/PARENT/parent.txt" inside space "Shares" should be favorited
|
2022-08-26 10:40:30 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: favorite a folder inside of a received share
|
|
|
|
|
Given user "Alice" has created folder "/PARENT/sub-folder"
|
2024-05-08 14:22:52 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
2024-05-08 09:45:36 +05:45
|
|
|
| resource | PARENT |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Editor |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "PARENT" synced
|
2022-10-20 20:49:57 +02:00
|
|
|
When user "Brian" favorites element "/PARENT/sub-folder" in space "Shares" using the WebDAV API
|
2022-08-26 10:40:30 +05:45
|
|
|
Then the HTTP status code should be "207"
|
2022-10-20 20:49:57 +02:00
|
|
|
And as user "Brian" folder "/PARENT/sub-folder" inside space "Shares" should be favorited
|
2022-08-26 10:40:30 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: sharee file favorite state should not change the favorite state of sharer
|
|
|
|
|
Given user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
2024-05-08 14:22:52 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
2024-05-08 09:45:36 +05:45
|
|
|
| resource | PARENT/parent.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | File Editor |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "parent.txt" synced
|
2022-10-20 20:49:57 +02:00
|
|
|
When user "Brian" favorites element "/parent.txt" in space "Shares" using the WebDAV API
|
2022-08-26 10:40:30 +05:45
|
|
|
Then the HTTP status code should be "207"
|
2022-10-20 20:49:57 +02:00
|
|
|
And as user "Brian" file "/parent.txt" inside space "Shares" should be favorited
|
2022-09-08 11:37:51 +05:45
|
|
|
And as user "Alice" file "/PARENT/parent.txt" inside space "Personal" should not be favorited
|