Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorswoichha <swoichhaa@gmail.com>2021-08-13 13:39:13 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-06 15:15:04 +0300
commitb4f61d0ba844286a45bc93bd5cf797944f8941d9 (patch)
treeafc2ed067af19c14d37a9610c3304ceb4364faf3 /test/gui/tst_sharing/test.feature
parentdc1982a34432e5611f7c9921a5326ee99500300c (diff)
[tests-only]fix object name for adding users
Diffstat (limited to 'test/gui/tst_sharing/test.feature')
-rw-r--r--test/gui/tst_sharing/test.feature42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature
index 22504f1ec..f60aca156 100644
--- a/test/gui/tst_sharing/test.feature
+++ b/test/gui/tst_sharing/test.feature
@@ -13,14 +13,14 @@ Feature: Sharing
Given user "Brian" has been created on the server with default attributes and without skeleton files
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
And user "Alice" has set up a client with default settings
- When the user adds "Brian Murphy" as collaborator of resource "%client_sync_path%/textfile0.txt" with permissions "edit,share" using the client-UI
- Then user "Brian Murphy" should be listed in the collaborators list for file "%client_sync_path%/textfile0.txt" with permissions "edit,share" on the client-UI
+ When the user adds "Brian Murphy" as collaborator of resource "%client_sync_path_user1%/textfile0.txt" with permissions "edit,share" using the client-UI
+ Then user "Brian Murphy" should be listed in the collaborators list for file "%client_sync_path_user1%/textfile0.txt" with permissions "edit,share" on the client-UI
@issue-7459
Scenario: Progress indicator should not be visible after unselecting the password protection checkbox while sharing through public link
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
And user "Alice" has set up a client with default settings
- When the user opens the public links dialog of "%client_sync_path%/textfile0.txt" using the client-UI
+ When the user opens the public links dialog of "%client_sync_path_user1%/textfile0.txt" using the client-UI
And the user toggles the password protection using the client-UI
And the user toggles the password protection using the client-UI
Then the password progress indicator should not be visible in the client-UI - expected to fail
@@ -31,7 +31,7 @@ Feature: Sharing
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
And user "Alice" has shared file "/textfile0.txt" on the server with user "Brian" with "read, share" permission
And user "Brian" has set up a client with default settings
- When user "Brian" opens the sharing dialog of "%client_sync_path%/textfile0.txt" using the client-UI
+ When user "Brian" opens the sharing dialog of "%client_sync_path_user1%/textfile0.txt" using the client-UI
Then the error text "The item is not shared with any users or groups" should be displayed in the sharing dialog
@@ -39,8 +39,8 @@ Feature: Sharing
Given group "grp1" has been created on the server
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
And user "Alice" has set up a client with default settings
- When the user adds group "grp1" as collaborator of resource "%client_sync_path%/textfile0.txt" with permissions "edit,share" using the client-UI
- Then group "grp1" should be listed in the collaborators list for file "%client_sync_path%/textfile0.txt" with permissions "edit,share" on the client-UI
+ When the user adds group "grp1" as collaborator of resource "%client_sync_path_user1%/textfile0.txt" with permissions "edit,share" using the client-UI
+ Then group "grp1" should be listed in the collaborators list for file "%client_sync_path_user1%/textfile0.txt" with permissions "edit,share" on the client-UI
Scenario: User (non-author) can not share to a group to which the file is already shared
@@ -51,7 +51,7 @@ Feature: Sharing
And user "Alice" has shared file "/textfile0.txt" on the server with user "Brian" with "read, share, update" permission
And user "Alice" has shared file "/textfile0.txt" on the server with group "grp1" with "read, share, update" permission
And user "Brian" has set up a client with default settings
- When the user tires to share resource "%client_sync_path%/textfile0.txt" with the group "grp1" using the client-UI
+ When the user tires to share resource "%client_sync_path_user1%/textfile0.txt" with the group "grp1" using the client-UI
Then the error "Path already shared with this group" should be displayed
@@ -61,7 +61,7 @@ Feature: Sharing
And user "Brian" has been created on the server with default attributes and without skeleton files
And user "Alice" has shared folder "simple-folder" on the server with user "Brian" with "all" permissions
And user "Brian" has set up a client with default settings
- When the user overwrites the file "simple-folder/textfile.txt" with content "overwrite ownCloud test text file"
+ When the user overwrites the file "simple-folder/textfile.txt" with content "overwrite ownCloud test text file"
Then as "Brian" the file "simple-folder/textfile.txt" on the server should have the content "overwrite ownCloud test text file"
And as "Alice" the file "simple-folder/textfile.txt" on the server should have the content "overwrite ownCloud test text file"
@@ -88,14 +88,14 @@ Feature: Sharing
And user "Brian" has shared folder "Shares/simple-folder" on the server with user "Carol"
And user "Brian" has set up a client with default settings
And user "Alice" has updated the share permissions on the server for folder "/simple-folder" to "read" for user "Brian"
- When user "Brian" opens the sharing dialog of "%client_sync_path%/Shares/simple-folder" using the client-UI
+ When user "Brian" opens the sharing dialog of "%client_sync_path_user1%/Shares/simple-folder" using the client-UI
Then the error text "The file can not be shared because it was shared without sharing permission." should be displayed in the sharing dialog
@smokeTest
Scenario: simple sharing of a file by public link without password
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
And user "Alice" has set up a client with default settings
- When the user creates a new public link for file "%client_sync_path%/textfile0.txt" without password using the client-UI
+ When the user creates a new public link for file "%client_sync_path_user1%/textfile0.txt" without password using the client-UI
Then as user "Alice" the file "textfile0.txt" should have a public link on the server
And the public should be able to download the file "textfile0.txt" without password from the last created public link by "Alice" on the server
@@ -103,7 +103,7 @@ Feature: Sharing
Scenario: simple sharing of a file by public link with password
Given user "Alice" has set up a client with default settings
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" on the server
- When the user creates a new public link for file "%client_sync_path%/textfile0.txt" with password "pass123" using the client-UI
+ When the user creates a new public link for file "%client_sync_path_user1%/textfile0.txt" with password "pass123" using the client-UI
Then as user "Alice" the file "textfile0.txt" should have a public link on the server
And the public should be able to download the file "textfile0.txt" with password "pass123" from the last created public link by "Alice" on the server
@@ -115,7 +115,7 @@ Feature: Sharing
| path | textfile0.txt |
| name | Public link |
| expireDate | 2031-10-14 |
- When the user opens the public links dialog of "%client_sync_path%/textfile0.txt" using the client-UI
+ When the user opens the public links dialog of "%client_sync_path_user1%/textfile0.txt" using the client-UI
And the user edits the public link named "Public link" of file "textfile0.txt" changing following
| expireDate | 2038-07-21 |
Then the fields of the last public link share response of user "Alice" should include on the server
@@ -125,7 +125,7 @@ Feature: Sharing
Scenario: simple sharing of a folder by public link without password
Given user "Alice" has created folder "simple-folder" on the server
And user "Alice" has set up a client with default settings
- When the user creates a new public link with permissions "Download / View" for folder "%client_sync_path%/simple-folder" without password using the client-UI
+ When the user creates a new public link with permissions "Download / View" for folder "%client_sync_path_user1%/simple-folder" without password using the client-UI
Then as user "Alice" the folder "simple-folder" should have a public link on the server
And the public should be able to download the folder "lorem.txt" without password from the last created public link by "Alice" on the server
@@ -133,7 +133,7 @@ Feature: Sharing
Scenario: simple sharing of a folder by public link with password
Given user "Alice" has created folder "simple-folder" on the server
And user "Alice" has set up a client with default settings
- When the user creates a new public link with permissions "Download / View" for folder "%client_sync_path%/simple-folder" with password "pass123" using the client-UI
+ When the user creates a new public link with permissions "Download / View" for folder "%client_sync_path_user1%/simple-folder" with password "pass123" using the client-UI
Then as user "Alice" the folder "simple-folder" should have a public link on the server
And the public should be able to download the folder "lorem.txt" with password "pass123" from the last created public link by "Alice" on the server
@@ -146,7 +146,7 @@ Feature: Sharing
| name | Public link |
| expireDate | 2031-10-14 |
| permissions | read, update, create, delete |
- When the user opens the public links dialog of "%client_sync_path%/simple-folder" using the client-UI
+ When the user opens the public links dialog of "%client_sync_path_user1%/simple-folder" using the client-UI
And the user edits the public link named "Public link" of file "simple-folder" changing following
| expireDate | 2038-07-21 |
Then the fields of the last public link share response of user "Alice" on the server should include
@@ -156,7 +156,7 @@ Feature: Sharing
Scenario Outline: simple sharing of folder by public link with different roles
Given user "Alice" has created folder "simple-folder" on the server
And user "Alice" has set up a client with default settings
- When the user creates a new public link for folder "%client_sync_path%/simple-folder" using the client-UI with these details:
+ When the user creates a new public link for folder "%client_sync_path_user1%/simple-folder" using the client-UI with these details:
| role | <role> |
Then user "Alice" on the server should have a share with these details:
| field | value |
@@ -176,7 +176,7 @@ Feature: Sharing
Given user "Alice" has created folder "simple-folder" on the server
And user "Alice" has created file "simple-folder/lorem.txt" on the server
And user "Alice" has set up a client with default settings
- When the user creates a new public link for folder "%client_sync_path%/simple-folder" with "Contributor" using the client-UI
+ When the user creates a new public link for folder "%client_sync_path_user1%/simple-folder" with "Contributor" using the client-UI
Then user "Alice" on the server should have a share with these details:
| field | value |
| share_type | public_link |
@@ -194,11 +194,11 @@ Feature: Sharing
And user "Alice" has shared folder "simple-folder" on the server with user "Brian" with "all" permissions
And user "Alice" has shared file "lorem.txt" on the server with user "Brian" with "all" permissions
And user "Alice" has set up a client with default settings
- When the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path%/simple-folder" using the client-UI
+ When the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path_user1%/simple-folder" using the client-UI
And the user closes the sharing dialog
- And the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path%/lorem.txt" using the client-UI
- Then "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path%/simple-folder" on the client-UI
- And "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path%/lorem.txt" on the client-UI
+ And the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path_user1%/lorem.txt" using the client-UI
+ Then "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path_user1%/simple-folder" on the client-UI
+ And "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path_user1%/lorem.txt" on the client-UI
And user "Alice" on the server should have a share with these details:
| field | value |
| uid_owner | Alice |