diff options
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 |