Skip to content

Commit

Permalink
[tests-only] test(e2e): create and download file having comma (#10447)
Browse files Browse the repository at this point in the history
* test(e2e): create and download file having comma

* test: remove duplicate acceptance tests

* tag bug issue

* bump ocis commit id
  • Loading branch information
saw-jan committed Mar 5, 2024
1 parent b4bbc69 commit 4518d50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ Feature: create files
When the user tries to create a file with already existing name "lorem.txt" using the webUI
Then the error message "lorem.txt already exists" should be displayed on the webUI dialog prompt
And the create file button should be disabled


Scenario: create file with name that contains commas
When the user creates a file with the name "sample,1.txt" using the webUI
And the user browses to the files page
Then file "sample,1.txt" should be listed on the webUI
7 changes: 0 additions & 7 deletions tests/acceptance/features/webUIFiles/download.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,3 @@ Feature: download files
And the user reloads the current page of the webUI
Then file "lorem.txt" should not be listed on the webUI
And as "Alice" file "lorem.txt" should not exist in the server


Scenario: download file with comma in the filename
Given user "Alice" has created file "sample,1.txt" in the server
And user "Alice" has logged in using the webUI
When the user downloads file "sample,1.txt" using the webUI
Then no message should be displayed on the webUI
7 changes: 7 additions & 0 deletions tests/e2e/cucumber/features/smoke/upload.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Feature: Upload
| new-lorem-big.txt | txtFile | new lorem big file |
| lorem.txt | txtFile | lorem file |
| textfile.txt | txtFile | some random content |
# Coverage for bug: https://github.com/owncloud/ocis/issues/8361
| comma,.txt | txtFile | comma |
When "Alice" uploads the following resources
| resource | option |
| new-lorem-big.txt | replace |
Expand All @@ -37,6 +39,11 @@ Feature: Upload
And "Alice" tries to upload the following resource
| resource | error |
| lorem-big.txt | Not enough quota |
And "Alice" downloads the following resources using the sidebar panel
| resource | type |
| PARENT | folder |
# Coverage for bug: https://github.com/owncloud/ocis/issues/8361
| comma,.txt | file |
# currently upload folder feature is not available in playwright
# And "Alice" uploads the following resources
# | resource |
Expand Down

0 comments on commit 4518d50

Please sign in to comment.