summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-04-12 19:57:16 +0200
committerGitHub <noreply@github.com>2017-04-12 19:57:16 +0200
commit250eb34e810d5f8989f48f96ea9e90c864e88cc7 (patch)
treebe298f5b186723e378c0c611e4c25d456e091eb1
parent124fdf8062139d5f1877e5fa9d0ce1969aa51e93 (diff)
parent4cf4d2f27e2c6f1527d009dec645603b36dae8ec (diff)
downloadnextcloud-server-250eb34e810d5f8989f48f96ea9e90c864e88cc7.tar.gz
nextcloud-server-250eb34e810d5f8989f48f96ea9e90c864e88cc7.zip
Merge pull request #4306 from nextcloud/followup-3905
Favorites integration tests for shared files
-rw-r--r--build/integration/features/favorites.feature13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/integration/features/favorites.feature b/build/integration/features/favorites.feature
index 3f90b7b42b7..a6c5c9fda95 100644
--- a/build/integration/features/favorites.feature
+++ b/build/integration/features/favorites.feature
@@ -133,3 +133,16 @@ Feature: favorite
Then user "user0" in folder "/subfolder" should have favorited the following elements
| /subfolder/textfile0.txt |
| /subfolder/textfile2.txt |
+
+ Scenario: moving a favorite file out of a share keeps favorite state
+ Given using old dav path
+ And As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And user "user0" created a folder "/shared"
+ And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
+ And folder "/shared" of user "user0" is shared with user "user1"
+ And user "user1" favorites element "/shared/shared_file.txt"
+ When User "user1" moved file "/shared/shared_file.txt" to "/taken_out.txt"
+ Then user "user1" in folder "/" should have favorited the following elements
+ | /taken_out.txt |