Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another batch of acceptance tests
Browse files Browse the repository at this point in the history
pascalwengerter committed May 5, 2023
1 parent 8dda78d commit eb2a7c1
Showing 9 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@
/>
</div>
<oc-button
v-oc-tooltip="$gettext('Create link')"
class="oc-ml-s"
size="small"
v-oc-tooltip="$gettext('Create link')"
:aria-label="$gettext('Create link')"
@click="createQuickLink"
>
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingPublicManagement/shareByPublicLink.feature:24](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature#L24)

### [Uploading folders does not work in files-drop](https://github.com/owncloud/web/issues/2443)
- [webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature:263](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature#L263)
- [webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature:282](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature#L282)

### [Writing to locked files/folders give only a generic error message](https://github.com/owncloud/web/issues/5741)
- [webUIWebdavLockProtection/upload.feature:32](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIWebdavLockProtection/upload.feature#L32)
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingPublicManagement/shareByPublicLink.feature:24](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature#L24)

### [Uploading folders does not work in files-drop](https://github.com/owncloud/web/issues/2443)
- [webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature:263](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature#L263)
- [webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature:282](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature#L282)

### [Resources cannot be locked under ocis](https://github.com/owncloud/ocis/issues/1284)
- [webUIWebdavLockProtection/delete.feature:33](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIWebdavLockProtection/delete.feature#L33)
2 changes: 1 addition & 1 deletion tests/acceptance/features/webUIFilesCopy/copy.feature
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ Feature: copy files and folders
When the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user copies file "data.zip" into folder "simple-empty-folder" using the webUI
Then breadcrumb for folder "simple-empty-folder" should be displayed on the webUI
And file "data.zip" should be listed on the webUI
And file "data.zip" should be listed on the webUI as single share
And as "Alice" file "simple-folder/simple-empty-folder/data.zip" should exist in the server
And as "Alice" file "simple-folder/data.zip" should exist in the server

Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ Feature: move files
And the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user moves file "data.zip" into folder "simple-empty-folder" using the webUI
Then breadcrumb for folder "simple-empty-folder" should be displayed on the webUI
And file "data.zip" should be listed on the webUI
And file "data.zip" should be listed on the webUI as single share
And as "Alice" file "simple-folder/simple-empty-folder/data.zip" should exist in the server
But as "Alice" file "simple-folder/data.zip" should not exist in the server

Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ Feature: Edit public link shares
And user "Alice" has logged in using the webUI
When the user tries to edit the public link named "Public-link" of folder "simple-folder" changing the password to "qwertyui"
And the public uses the webUI to access the last public link created by user "Alice" with password "qwertyui" in a new session
Then file "lorem.txt" should be listed on the webUI
Then file "lorem.txt" should be listed on the webUI as single share

@issue-3830
Scenario: user edits the password of an already existing public link and tries to access with old password
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ Feature: Access public link shares by public
Given user "Alice" has created file "simple-folder/lorem.txt" in the server
And user "Alice" has shared folder "simple-folder" with link with "read, update, create, delete" permissions and password "pass123" in the server
When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" in a new session
Then file "lorem.txt" should be listed on the webUI
Then file "lorem.txt" should be listed on the webUI as single share


Scenario: public should not be able to access a public link with wrong password
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ Feature: Share by public link with different roles
| name | Link |
And a link named "Link" should be listed with role "<displayed-role>" in the public link list of folder "simple-folder" on the webUI
When the public uses the webUI to access the last public link created by user "Alice" in a new session
Then file "lorem.txt" should be listed on the webUI
Then file "lorem.txt" should be listed on the webUI as single share
Examples:
| role | displayed-role | permissions |
| Viewer | Anyone with the link can view | read |
@@ -68,7 +68,7 @@ Feature: Share by public link with different roles
| permissions | <permissions> |
| path | /simple-folder |
When the public uses the webUI to access the last public link created by user "Alice" in a new session
Then file "lorem.txt" should be listed on the webUI
Then file "lorem.txt" should be listed on the webUI as single share
Examples:
| role | permissions |
| Editor | read, update, create, delete |
@@ -159,7 +159,7 @@ Feature: Share by public link with different roles
Given 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 uploads file "new-lorem.txt" using the webUI
Then file "new-lorem.txt" should be listed on the webUI
Then file "new-lorem.txt" should be listed on the webUI as single share
And as "Alice" file "simple-folder/new-lorem.txt" should exist in the server


@@ -169,7 +169,7 @@ Feature: Share by public link with different roles
When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" in a new session
And the user opens folder "simple-empty-folder" using the webUI
And the user uploads file "new-lorem.txt" using the webUI
Then file "new-lorem.txt" should be listed on the webUI
Then file "new-lorem.txt" should be listed on the webUI as single share
And as "Alice" file "simple-folder/simple-empty-folder/new-lorem.txt" should exist in the server


@@ -199,7 +199,7 @@ Feature: Share by public link with different roles
Given user "Alice" has shared folder "simple-folder" with link with "read, update, create, delete" permissions and password "pass123" in the server
When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" in a new session
And the user uploads file "new-lorem.txt" using the webUI
Then file "new-lorem.txt" should be listed on the webUI
Then file "new-lorem.txt" should be listed on the webUI as single share
And as "Alice" file "simple-folder/new-lorem.txt" should exist in the server


@@ -209,7 +209,7 @@ Feature: Share by public link with different roles
When the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user opens folder "simple-empty-folder" using the webUI
And the user uploads file "new-lorem.txt" using the webUI
Then file "new-lorem.txt" should be listed on the webUI
Then file "new-lorem.txt" should be listed on the webUI as single share
And as "Alice" file "simple-folder/simple-empty-folder/new-lorem.txt" should exist in the server


@@ -219,7 +219,7 @@ Feature: Share by public link with different roles
And the user uploads folder "PARENT" using the webUI
Then folder "PARENT" should be listed on the webUI
And folder "CHILD" should be listed in the folder "PARENT" on the webUI
And file "child.txt" should be listed in the folder "CHILD" on the webUI
And file "child.txt" should be listed in the folder "CHILD" on the webUI as single share
And as "Alice" file "simple-folder/PARENT/CHILD/child.txt" should exist in the server


@@ -231,7 +231,7 @@ Feature: Share by public link with different roles
And the user uploads folder "PARENT" using the webUI
Then folder "PARENT" should be listed on the webUI
And folder "CHILD" should be listed in the folder "PARENT" on the webUI
And file "child.txt" should be listed in the folder "CHILD" on the webUI
And file "child.txt" should be listed in the folder "CHILD" on the webUI as single share
And as "Alice" file "simple-folder/simple-empty-folder/PARENT/CHILD/child.txt" should exist in the server

@issue-ocis-723
2 changes: 1 addition & 1 deletion tests/acceptance/features/webUIUpload/upload.feature
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@ Feature: File Upload
Given user "Alice" has shared folder "simple-folder" with link with "read, update, create, delete" permissions and password "pass123" in the server
When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" in a new session
And the user uploads overwriting file "lorem.txt" using the webUI
Then file "lorem.txt" should be listed on the webUI
Then file "lorem.txt" should be listed on the webUI as single share
And as "Alice" the content of "simple-folder/lorem.txt" in the server should be the same as the content of local file "lorem.txt"


0 comments on commit eb2a7c1

Please sign in to comment.