From a29312e17a9909cb604ba22842abfedb5ea6c43d Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Tue, 23 Nov 2021 14:24:18 +0545 Subject: [PATCH] Add valid tests that were removed by PR --- .../webUIFilesActionMenu/versions.feature | 11 +++++++++++ .../trashbinDelete.feature | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/tests/acceptance/features/webUIFilesActionMenu/versions.feature b/tests/acceptance/features/webUIFilesActionMenu/versions.feature index 1a38f34b9e0..2bbbcccddaf 100644 --- a/tests/acceptance/features/webUIFilesActionMenu/versions.feature +++ b/tests/acceptance/features/webUIFilesActionMenu/versions.feature @@ -85,3 +85,14 @@ Feature: Versions of a file And the user uploads overwriting file "lorem.txt" using the webUI And the user browses to display the "versions" details of file "lorem.txt" Then the versions list should contain 1 entries + + @issue-ocis-1328 @disablePreviews + Scenario: sharee can see the versions of a file + Given user "user0" has uploaded file with content "lorem content" to "lorem-file.txt" + And user "user0" has uploaded file with content "lorem" to "lorem-file.txt" + And user "user0" has uploaded file with content "new lorem content" to "lorem-file.txt" + And user "user0" has shared file "lorem-file.txt" with user "Alice" + And user "Alice" has logged in using the webUI + When the user browses to display the "versions" details of file "lorem-file.txt" + Then the content of file "lorem-file.txt" for user "Alice" should be "new lorem content" + And the versions list should contain 2 entries diff --git a/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature b/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature index 1fd9ec84ff3..263ebb2af06 100644 --- a/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature +++ b/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature @@ -132,3 +132,22 @@ Feature: files and folders can be deleted from the trashbin | fo.xyz | Then the deleted elements should not be listed on the webUI And the deleted elements should not be listed on the webUI after a page reload + + @issue-product-188 @issue-4582 + Scenario: Select all except for some files and delete from trashbin in a batch + When the user marks all files for batch action using the webUI + And the user unmarks these files for batch action using the webUI + | name | + | lorem.txt | + | lorem-big.txt | + And the user batch deletes the marked files using the webUI + Then file "lorem.txt" should be listed on the webUI + And file "lorem-big.txt" should be listed on the webUI + But file "data.zip" should not be listed on the webUI + And folder "simple-folder" should not be listed on the webUI + + @issue-product-188 @issue-4582 + Scenario: Select all files and delete from trashbin in a batch + When the user marks all files for batch action using the webUI + And the user batch deletes the marked files using the webUI + Then there should be no resources listed on the webUI