Skip to content

Commit

Permalink
rename e2e tests (#10333)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored Jan 15, 2024
1 parent 6d1eb7f commit 1b4b74c
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 382 deletions.
4 changes: 0 additions & 4 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ config = {
],
"oCISSharingInternal2": [
"webUISharingInternalUsers",
"webUISharingInternalUsersBlacklisted",
"webUISharingInternalUsersCollaborator",
],
"oCISSharingInternal3": [
"webUISharingInternalGroupsSharingIndicator",
Expand Down Expand Up @@ -230,8 +228,6 @@ basicTestSuites = [
"webUISharingInternalGroupsEdgeCases",
"webUISharingInternalGroupsSharingIndicator",
"webUISharingInternalUsers",
"webUISharingInternalUsersBlacklisted",
"webUISharingInternalUsersCollaborator",
"webUISharingInternalUsersShareWithPage",
"webUISharingInternalUsersSharingIndicator",
"webUISharingPermissionsUsers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,17 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUILogin/openidLogin.feature:50](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUILogin/openidLogin.feature#L50)
- [webUILogin/openidLogin.feature:60](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUILogin/openidLogin.feature#L60)

### [when sharer renames the shared resource, sharee get the updated name](https://github.com/owncloud/ocis/issues/2256)
- [webUIRenameFiles/renameFiles.feature:227](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L227)

### [Cannot create users with special characters](https://github.com/owncloud/ocis/issues/1417)
- [webUISharingAutocompletion/shareAutocompletionSpecialChars.feature:37](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature#L37)
- [webUISharingAutocompletion/shareAutocompletionSpecialChars.feature:38](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature#L38)
- [webUISharingAutocompletion/shareAutocompletionSpecialChars.feature:35](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature#L35)
- [webUISharingAutocompletion/shareAutocompletionSpecialChars.feature:36](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature#L36)


### [Share additional info](https://github.com/owncloud/ocis/issues/1253)
- [webUISharingInternalUsersShareWithPage/shareWithUsers.feature:126](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature#L126)

### [Different path for shares inside folder](https://github.com/owncloud/ocis/issues/1231)

### [Listing shares via ocs API does not show path for parent folders](https://github.com/owncloud/ocis/issues/1231)
- [webUISharingPublicManagement/shareByPublicLink.feature:110](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature#L111)

### [Conflict / overwrite issues with TUS](https://github.com/owncloud/ocis/issues/1294)
- [webUIUpload/uploadFileGreaterThanQuotaSize.feature:11](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIUpload/uploadFileGreaterThanQuotaSize.feature#L11)

### [restoring a file deleted from a received shared folder is not possible](https://github.com/owncloud/ocis/issues/1124)
- [webUITrashbinRestore/trashbinRestore.feature:176](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature#L176)

### [Comments in sidebar](https://github.com/owncloud/web/issues/1158)
- [webUIFilesDetails/fileDetails.feature:84](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L84)
- [webUIFilesDetails/fileDetails.feature:98](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L98)
- [webUIFilesDetails/fileDetails.feature:113](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L113)
- [webUIFilesDetails/fileDetails.feature:128](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L128)

### [Deletion of a recursive folder from trashbin is not possible](https://github.com/owncloud/product/issues/188)
- [webUITrashbinDelete/trashbinDelete.feature:51](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature#L51)
- [webUITrashbinDelete/trashbinDelete.feature:65](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature#L65)
Expand Down Expand Up @@ -70,10 +51,5 @@ Other free text and markdown formatting can be used elsewhere in the document if
### [empty subfolder inside a folder to be uploaded is not created on the server](https://github.com/owncloud/web/issues/6348)
- [webUIUpload/upload.feature:43](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIUpload/upload.feature#L43)

### [Favorites deactivated in ocis temporarily](https://github.com/owncloud/ocis/issues/1228)
- [webUIFilesDetails/fileDetails.feature:47](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L47)
- [webUIFilesDetails/fileDetails.feature:67](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L67)
- [webUIRenameFiles/renameFiles.feature:250](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L250)

### [PROPFIND to sub-folder of a shared resources with same name gives 404](https://github.com/owncloud/ocis/issues/3859)
- [webUISharingAcceptShares/acceptShares.feature:105](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L105)
97 changes: 0 additions & 97 deletions tests/acceptance/features/webUIFilesDetails/fileDetails.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,103 +43,6 @@ Feature: User can open the details panel for any file or folder
Then the "people" details panel should be visible
And the "small" preview of thumbnail should be visible in the "people" panel

@files_versions-app-required @ocis-reva-issue-39
Scenario: View different areas of the app-sidebar for a file in favorites page
Given user "Alice" has created file "lorem.txt" in the server
And the user has browsed to the personal page
And user "Alice" has favorited element "lorem.txt" in the server
And the user has browsed to the favorites page
When the user opens the sidebar for file "lorem.txt" on the webUI
Then the app-sidebar should be visible
And the "details" details panel should be visible
And the "big" preview of thumbnail should be visible in the "details" panel
When the user switches to "actions" panel in details panel using the webUI
Then the "actions" details panel should be visible
And the "small" preview of thumbnail should be visible in the "actions" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
And the "small" preview of thumbnail should be visible in the "people" panel
When the user switches to "versions" panel in details panel using the webUI
Then the "versions" details panel should be visible
And the "small" preview of thumbnail should be visible in the "versions" panel

@files_versions-app-required @ocis-reva-issue-39
Scenario: View different areas of the app-sidebar for a folder in favorites page
Given user "Alice" has created folder "simple-folder" in the server
And the user has browsed to the personal page
And user "Alice" has favorited element "simple-folder" in the server
And the user has browsed to the favorites page
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the "details" details panel should be visible
And the "big" preview of thumbnail should be visible in the "details" panel
When the user switches to "actions" panel in details panel using the webUI
Then the "actions" details panel should be visible
And the "small" preview of thumbnail should be visible in the "actions" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
And the "small" preview of thumbnail should be visible in the "people" panel

@issue-1158 @comments-app-required @public_link_share-feature-required
Scenario: user shares a file through public link and then the details dialog should work in a Shared by link page
Given user "Alice" has created folder "simple-folder" in the server
And the user has browsed to the personal page
And user "Alice" has created a public link with following settings in the server
| path | simple-folder |
And the user has browsed to the shared-via-link page
When the user opens the actions sidebar panel of folder "simple-folder" on the webUI
Then the "small" preview of thumbnail should be visible in the "actions" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
When the user switches to "comments" panel in details panel using the webUI
Then the "comments" details panel should be visible

@issue-1158 @comments-app-required
Scenario: user shares a file and then the details dialog should work in a Shared with others page
Given user "Alice" has created folder "simple-folder" in the server
And the user has browsed to the personal page
And user "Alice" has shared folder "simple-folder" with user "Brian" in the server
When the user browses to the shared-with-others page
Then folder "simple-folder" should be listed on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the "big" preview of thumbnail should be visible in the "details" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
When the user switches to "comments" panel in details panel using the webUI
Then the "comments" details panel should be visible

@issue-1158 @comments-app-required
Scenario: user shares a folder via link and then the details dialog should work in a Shared with others page
Given user "Alice" has created folder "simple-folder" in the server
And the user has browsed to the personal page
And user "Alice" has created a new public link for resource "simple-folder" in the server
When the user browses to the shared-with-others page
Then folder "simple-folder" should be listed on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the "big" preview of thumbnail should be visible in the "details" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
When the user switches to "comments" panel in details panel using the webUI
Then the "comments" details panel should be visible

@issue-1158 @comments-app-required
Scenario: the recipient user should be able to view different areas of details panel in Shared with me page
Given user "Alice" has created folder "simple-folder" in the server
And the user has browsed to the personal page
And user "Alice" has shared folder "simple-folder" with user "Brian" in the server
And the user re-logs in as "Brian" using the webUI
When the user browses to the shared-with-me page
Then folder "simple-folder" should be listed on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the "big" preview of thumbnail should be visible in the "details" panel
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
When the user switches to "comments" panel in details panel using the webUI
Then the "comments" details panel should be visible

@ocis-reva-issue-106
Scenario: without any share the shared-with-others page should be empty
When the user browses to the shared-with-others page using the webUI
Expand Down
97 changes: 0 additions & 97 deletions tests/acceptance/features/webUIRenameFiles/renameFiles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,6 @@ Feature: rename files
Then file "loremz.dat" should be listed on the webUI
And file "loremy.tad" should be listed on the webUI

# these are invalid file names on oc10
@notToImplementOnOCIS
Scenario Outline: Try to rename a file using forbidden characters
Given user "Alice" has logged in using the webUI
When the user tries to rename file "data.zip" to "<filename>" using the webUI
Then the "error" message with header 'Failed to rename "data.zip" to "<filename>"' should be displayed on the webUI
And the user clears all error message from the webUI
And file "data.zip" should be listed on the webUI
And file "<filename>" should not be listed on the webUI
Examples:
| filename |
| lorem\txt |
| \\.txt |
| .htaccess |


Scenario Outline: Rename a file/folder using forward slash in its name
Given user "Alice" has logged in using the webUI
Expand Down Expand Up @@ -170,95 +155,13 @@ Feature: rename files
Then the error message 'The name cannot be equal to "."' should be displayed on the webUI dialog prompt
And file 'data.zip' should be listed on the webUI

@notToImplementOnOCIS
# This is valid file name for ocis
Scenario: Rename a file to .part (on oc10)
Given user "Alice" has logged in using the webUI
When the user tries to rename file "data.zip" to "data.part" using the webUI
Then the "error" message with header 'Failed to rename "data.zip" to "data.part"' should be displayed on the webUI

@skipOnOC10
Scenario: Rename a file to .part
Given user "Alice" has logged in using the webUI
When the user renames file "data.zip" to "data.part" using the webUI
Then file 'data.part' should be listed on the webUI


Scenario: rename a file on a public share (on ocis)
Given user "Alice" has created folder "simple-folder" in the server
And user "Alice" has uploaded file "lorem.txt" to "simple-folder/lorem.txt" in the server
And user "Alice" has shared folder "simple-folder" with link with "read, update, create, delete" permissions in the server
When the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user renames file "lorem.txt" to "a-renamed-file.txt" using the webUI
Then file "a-renamed-file.txt" should be listed on the webUI
But file "lorem.txt" should not be listed on the webUI
When the user reloads the current page of the webUI
Then file "a-renamed-file.txt" should be listed on the webUI
But file "lorem.txt" should not be listed on the webUI
And as "Alice" file "simple-folder/a-renamed-file.txt" should exist in the server
And as "Alice" file "simple-folder/lorem.txt" should not exist in the server

@issue-2249 @notToImplementOnOCIS
Scenario: Rename a file and folder in shared with me page
Given user "Brian" has been created with default attributes and without skeleton files in the server
And user "Brian" has created folder "simple-folder" in the server
And user "Brian" has uploaded file "lorem.txt" to "simple-folder/lorem.txt" in the server
And user "Brian" has uploaded file "lorem.txt" to "lorem.txt" in the server
And user "Brian" has shared file "lorem.txt" with user "Alice" in the server
And user "Brian" has shared folder "simple-folder" with user "Alice" in the server
And user "Alice" has logged in using the webUI
When the user browses to the shared-with-me page
And the user renames file "lorem (2).txt" to "renamed-file.txt" using the webUI
And the user renames folder "simple-folder" to "renamed-folder" using the webUI
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
When the user reloads the current page of the webUI
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
When the user browses to the files page
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
And as "Alice" file "renamed-file.txt" should exist in the server
And as "Alice" folder "renamed-folder" should exist in the server
And as "Brian" file "lorem.txt" should exist in the server
And as "Brian" folder "simple-folder" should exist in the server

@issue-ocis-2256
Scenario: Rename a file and folder in shared with others page
Given user "Brian" has been created with default attributes and without skeleton files in the server
And user "Alice" has created folder "simple-folder" in the server
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared folder "simple-folder" with user "Brian" in the server
And user "Alice" has logged in using the webUI
When the user browses to the shared-with-others page
And the user renames file "lorem.txt" to "renamed-file.txt" using the webUI
And the user renames folder "simple-folder" to "renamed-folder" using the webUI
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
When the user reloads the current page of the webUI
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
When the user browses to the files page
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI
And as "Alice" file "renamed-file.txt" should exist in the server
And as "Alice" folder "renamed-folder" should exist in the server
And as "Brian" file "lorem.txt" should exist in the server
And as "Brian" folder "simple-folder" should exist in the server

@issue-ocis-1330
Scenario: Rename a file and folder in favorites page
Given user "Alice" has created folder "simple-folder" in the server
And user "Alice" has favorited element "lorem.txt" in the server
And user "Alice" has favorited element "simple-folder" in the server
And user "Alice" has logged in using the webUI
When the user browses to the favorites page
And the user renames file "lorem.txt" to "renamed-file.txt" using the webUI
And the user renames folder "simple-folder" to "renamed-folder" using the webUI
Then file "renamed-file.txt" should be listed on the webUI
And folder "renamed-folder" should be listed on the webUI


Scenario: User tries to rename a file that used to exist but does not anymore
Given user "Alice" has logged in using the webUI
And the following files have been deleted by user "Alice" in the server
Expand Down
Loading

0 comments on commit 1b4b74c

Please sign in to comment.