-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38028 from owncloud/testsForIssue38027
[tests-only] add tests to demonstrate issue #38027
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
tests/acceptance/features/apiFavorites/favoritesOc10Issue38027.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@api @notToImplementOnOCIS | ||
Feature: current oC10 behavior for issue-38027 | ||
|
||
Scenario Outline: sharee file favorite state should not change the favorite state of sharer | ||
Given using <dav_version> DAV path | ||
And the administrator has enabled DAV tech_preview | ||
And the administrator has set the default folder for received shares to "Shares" | ||
And auto-accept shares has been disabled | ||
And user "Alice" has been created with default attributes and without skeleton files | ||
And user "Alice" has created folder "/PARENT" | ||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt" | ||
And user "Brian" has been created with default attributes and without skeleton files | ||
And user "Alice" has shared file "/PARENT/parent.txt" with user "Brian" | ||
And user "Brian" has accepted share "/PARENT/parent.txt" offered by user "Alice" | ||
# Brian should not see the full path of the file on the sharer side | ||
# And user "Brian" has accepted share "/parent.txt" offered by user "Alice" | ||
When user "Brian" favorites element "/Shares/parent.txt" using the WebDAV API | ||
Then the HTTP status code should be "207" | ||
And as user "Alice" file "/PARENT/parent.txt" should not be favorited | ||
Examples: | ||
| dav_version | | ||
| old | | ||
| new | |