mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-02 02:59:00 -05:00
69 lines
3.0 KiB
Gherkin
69 lines
3.0 KiB
Gherkin
Feature: favorite
|
|
As a user
|
|
I want to favorite resources
|
|
So that I can access them quickly
|
|
|
|
Background:
|
|
Given these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
And using spaces DAV path
|
|
And user "Alice" has created folder "/PARENT"
|
|
|
|
|
|
Scenario: favorite a received share itself
|
|
Given user "Alice" has sent the following resource share invitation:
|
|
| resource | PARENT |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
And user "Brian" has a share "PARENT" synced
|
|
When user "Brian" favorites element "/PARENT" in space "Shares" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" folder "/PARENT" inside space "Shares" should be favorited
|
|
|
|
|
|
Scenario: favorite a file inside of a received share
|
|
Given user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | PARENT |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
And user "Brian" has a share "PARENT" synced
|
|
When user "Brian" favorites element "/PARENT/parent.txt" in space "Shares" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" file "/PARENT/parent.txt" inside space "Shares" should be favorited
|
|
|
|
|
|
Scenario: favorite a folder inside of a received share
|
|
Given user "Alice" has created folder "/PARENT/sub-folder"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | PARENT |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
And user "Brian" has a share "PARENT" synced
|
|
When user "Brian" favorites element "/PARENT/sub-folder" in space "Shares" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" folder "/PARENT/sub-folder" inside space "Shares" should be favorited
|
|
|
|
|
|
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"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | PARENT/parent.txt |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | File Editor |
|
|
And user "Brian" has a share "parent.txt" synced
|
|
When user "Brian" favorites element "/parent.txt" in space "Shares" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" file "/parent.txt" inside space "Shares" should be favorited
|
|
And as user "Alice" file "/PARENT/parent.txt" inside space "Personal" should not be favorited
|