diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2016-11-24 12:00:56 +0000 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-22 12:50:07 +0100 |
commit | fbbd833ed1e8afde2b73334d3e2f86df303a4274 (patch) | |
tree | d6f51d4f08b362c7dc41becf4fdb1ab10b63581d /build/integration/features | |
parent | e76732c03aee9e63da245044a16c5cfe1b0cba20 (diff) | |
download | nextcloud-server-fbbd833ed1e8afde2b73334d3e2f86df303a4274.tar.gz nextcloud-server-fbbd833ed1e8afde2b73334d3e2f86df303a4274.zip |
Added more favorites report cases
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/integration/features')
-rw-r--r-- | build/integration/features/favorites.feature | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/build/integration/features/favorites.feature b/build/integration/features/favorites.feature index c00ed05eefe..ab6bf51f25c 100644 --- a/build/integration/features/favorites.feature +++ b/build/integration/features/favorites.feature @@ -90,3 +90,47 @@ Feature: favorite | /textfile0.txt | | /textfile1.txt | + Scenario: Get favorited elements of a folder using new path + Given using new dav path + And As an "admin" + And user "user0" exists + When user "user0" favorites element "/FOLDER" + And user "user0" favorites element "/textfile0.txt" + And user "user0" favorites element "/textfile1.txt" + Then user "user0" in folder "/" should have favorited the following elements + | /FOLDER | + | /textfile0.txt | + | /textfile1.txt | + + Scenario: Get favorited elements of a subfolder + Given using old dav path + And As an "admin" + And user "user0" exists + And user "user0" created a folder "/subfolder" + And User "user0" moves file "/textfile0.txt" to "/subfolder/textfile0.txt" + And User "user0" moves file "/textfile1.txt" to "/subfolder/textfile1.txt" + And User "user0" moves file "/textfile2.txt" to "/subfolder/textfile2.txt" + When user "user0" favorites element "/subfolder/textfile0.txt" + And user "user0" favorites element "/subfolder/textfile1.txt" + And user "user0" favorites element "/subfolder/textfile2.txt" + And user "user0" unfavorites element "/subfolder/textfile1.txt" + Then user "user0" in folder "/subfolder" should have favorited the following elements + | /subfolder/textfile0.txt | + | /subfolder/textfile2.txt | + + Scenario: Get favorited elements of a subfolder using new path + Given using old dav path + And As an "admin" + And user "user0" exists + And user "user0" created a folder "/subfolder" + And User "user0" moves file "/textfile0.txt" to "/subfolder/textfile0.txt" + And User "user0" moves file "/textfile1.txt" to "/subfolder/textfile1.txt" + And User "user0" moves file "/textfile2.txt" to "/subfolder/textfile2.txt" + When user "user0" favorites element "/subfolder/textfile0.txt" + And user "user0" favorites element "/subfolder/textfile1.txt" + And user "user0" favorites element "/subfolder/textfile2.txt" + And user "user0" unfavorites element "/subfolder/textfile1.txt" + Then user "user0" in folder "/subfolder" should have favorited the following elements + | /subfolder/textfile0.txt | + | /subfolder/textfile2.txt | + |