Skip to content

Commit

Permalink
Add valid tests that were removed by PR
Browse files Browse the repository at this point in the history
  • Loading branch information
SwikritiT committed Nov 23, 2021
1 parent c15f365 commit 3fe76aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 124 deletions.
49 changes: 4 additions & 45 deletions tests/acceptance/features/webUIFilesActionMenu/versions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,50 +38,9 @@ Feature: 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 logged in using the webUI
And the administrator has cleared the versions for user "user0"
When the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries

@ocis-reva-issue-110
@skipOnStorage:ceph @files_primary_s3-issue-155
Scenario: file versions cannot be seen on the webUI only for user whose versions is deleted
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 "Alice" has uploaded file with content "lorem content" to "lorem-file.txt"
And user "Alice" has uploaded file with content "lorem" to "lorem-file.txt"
And user "user0" has logged in using the webUI
And the administrator has cleared the versions for user "user0"
When the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
When the user re-logs in as "Alice" using the webUI
And the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 1 entries

@ocis-reva-issue-110
@skipOnStorage:ceph @files_primary_s3-issue-155
Scenario: file versions cannot be seen on the webUI for all users after deleting versions for all users
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 "Alice" has uploaded file with content "lorem content" to "/lorem-file.txt"
And user "Alice" has uploaded file with content "lorem" to "/lorem-file.txt"
And user "user0" has logged in using the webUI
And the administrator has cleared the versions for all users
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 versions list should contain 0 entries
When the user re-logs in as "Alice" using the webUI
And the user browses to display the "versions" details of file "lorem-file.txt"
Then the versions list should contain 0 entries
Then the content of file "lorem-file.txt" for user "Alice" should be "new lorem content"
And the versions list should contain 2 entries

@issue-ocis-2319
Scenario: change the file content of a received shared file
Given the setting "shareapi_auto_accept_share" of app "core" has been set to "no"
And the administrator has set the default folder for received shares to "Shares"
And user "user0" has uploaded file with content "a text file" to "lorem.txt"
And user "user0" has shared file "lorem.txt" with user "Alice" with "all" permissions
And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "user0"
And user "Alice" has logged in using the webUI
When the user opens folder "Shares" using the webUI
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,91 +44,22 @@ Feature: files and folders can be deleted from the trashbin
Then folder "simple-folder" should not be listed on the webUI
And folder "Folder,With,Comma" should not be listed on the webUI

@skipOnOC10 @issue-product-188
# after the issue is fixed delete this scenario and use the one above
Scenario: Delete folders and check that they are gone (ocis bug demonstration)
When the user deletes folder "simple-folder" using the webUI
Then the error message with header "Deletion of simple-folder failed" should be displayed on the webUI
And folder "simple-folder" should be listed on the webUI
When the user deletes folder "Folder,With,Comma" using the webUI
Then folder "Folder,With,Comma" should not be listed on the webUI

@ocisSmokeTest @skipOnOC10 @issue-4582
Scenario: Select some files and delete from trashbin in a batch
When the user batch deletes these files using the webUI
| name |
| lorem.txt |
| lorem-big.txt |
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
But file "data.zip" should be listed on the webUI
And folder "simple-folder" should be listed on the webUI
And the user browses to the files page
And file "lorem.txt" should not be listed on the webUI
And file "lorem-big.txt" should not be listed on the webUI

@skipOnOC10 @issue-product-188
# after the issue is fixed delete this scenario and use the one above
Scenario: Select all except for some files and delete from trashbin in a batch (ocis bug demonstration)
@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 permanently using the webUI
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 folder "simple-folder" should be listed on the webUI
And file "data.zip" should not 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

@skipOnOC10 @issue-product-188
# after the issue is fixed delete this scenario and use the one above
Scenario: Select all files and delete from trashbin in a batch (ocis bug demonstration)
@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 permanently using the webUI
Then file "lorem.txt" should not be listed on the webUI
But folder "simple-folder" should be listed on the webUI

@issue-4437
Scenario: Delete single file from deleted files list
When the user deletes the file "lorem.txt" from the deleted files list
Then file "lorem.txt" should not be listed on the webUI
When the user reloads the current page of the webUI
Then file "lorem.txt" should not be listed on the webUI

@issue-product-139
Scenario: Clear trashbin
When the user clears the trashbin
Then the success message with header "All deleted files were removed" should be displayed on the webUI
And there should be no resources listed on the webUI


Scenario: Delete folders with dot in the name from trashbin
Given user "Alice" has created the following folders
| folders |
| fo. |
| fo.1 |
| fo...1.. |
| ... |
| ..fo |
| fo.xyz |
And the following folders have been deleted by user "Alice"
| name |
| fo. |
| fo.1 |
| fo...1.. |
| ... |
| ..fo |
| fo.xyz |
And the user has browsed to the trashbin page
And the user has reloaded the current page of the webUI
When the user batch deletes these files using the webUI
| name |
| fo. |
| fo.1 |
| fo...1.. |
| ... |
| ..fo |
| 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
And the user batch deletes the marked files using the webUI
Then there should be no resources listed on the webUI

0 comments on commit 3fe76aa

Please sign in to comment.