diff options
author | Robin Appelman <robin@icewind.nl> | 2018-09-05 17:50:55 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-09-20 17:03:50 +0200 |
commit | 8491c9bdc63a1582163b17927eacc3fc9c27c606 (patch) | |
tree | 9d7fbb04978d4d4119fac886dded25a29550e20f /build/integration/features/trashbin.feature | |
parent | 26e2957aeaa984ac5e94f27d3a0c08af456b78e2 (diff) | |
download | nextcloud-server-8491c9bdc63a1582163b17927eacc3fc9c27c606.tar.gz nextcloud-server-8491c9bdc63a1582163b17927eacc3fc9c27c606.zip |
fix trashbin integration tests and add a few more
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'build/integration/features/trashbin.feature')
-rw-r--r-- | build/integration/features/trashbin.feature | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/build/integration/features/trashbin.feature b/build/integration/features/trashbin.feature index adb73f2b5ea..0b8bf3a81c4 100644 --- a/build/integration/features/trashbin.feature +++ b/build/integration/features/trashbin.feature @@ -1,7 +1,7 @@ Feature: trashbin Background: Given using api version "1" - And using old dav path + And using new dav path And As an "admin" And app "files_trashbin" is enabled @@ -9,5 +9,22 @@ Feature: trashbin Given As an "admin" And user "user0" exists When User "user0" deletes file "/textfile0.txt" - Then as "user0" the file "/textfile0.txt" exists in trash + Then user "user0" in trash folder "/" should have 1 element + And user "user0" in trash folder "/" should have the following elements + | /textfile0.txt | + + Scenario: clearing the trashbin + Given As an "admin" + And user "user0" exists + When User "user0" deletes file "/textfile0.txt" + And User "user0" empties trashbin + Then user "user0" in trash folder "/" should have 0 elements + + Scenario: restoring file from trashbin + Given As an "admin" + And user "user0" exists + When User "user0" deletes file "/textfile0.txt" + And user "user0" in restores "/textfile0.txt" from trash + Then user "user0" in trash folder "/" should have 0 elements + And as "user0" the file "/textfile0.txt" exists |