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:
-rw-r--r--test/gui/shared/steps/steps.py2
-rw-r--r--test/gui/tst_sharing/test.feature38
2 files changed, 3 insertions, 37 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index c548703be..06e9125e9 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -458,7 +458,7 @@ def step(context, permissions, resource):
openPublicLinkDialog(context, resource)
radioObjectName = ''
if permissions == 'Download / View':
- radioObjectName = name.oCC_ShareLinkWidget_radio_readOnly_QRadioButton
+ radioObjectName = names.oCC_ShareLinkWidget_radio_readOnly_QRadioButton
elif permissions == 'Download / View / Edit':
radioObjectName = names.oCC_ShareLinkWidget_radio_readWrite_QRadioButton
elif permissions == 'Upload only (File Drop)':
diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature
index 813fe8385..7dfef9445 100644
--- a/test/gui/tst_sharing/test.feature
+++ b/test/gui/tst_sharing/test.feature
@@ -68,24 +68,7 @@ Feature: Sharing
Scenario: simple sharing of a folder by public link without password
Given user "Alice" has been created on the server with default attributes
- And user "Alice" has set up a client with these settings and password "1234":
- """
- [Accounts]
- 0\Folders\1\ignoreHiddenFiles=true
- 0\Folders\1\localPath=%client_sync_path%
- 0\Folders\1\paused=false
- 0\Folders\1\targetPath=/
- 0\Folders\1\version=2
- 0\Folders\1\virtualFilesMode=off
- 0\dav_user=alice
- 0\display-name=Alice
- 0\http_oauth=false
- 0\http_user=alice
- 0\url=%local_server%
- 0\user=Alice
- 0\version=1
- version=2
- """
+ And user "Alice" has set up a client with default settings and password "1234"
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
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
@@ -93,24 +76,7 @@ Feature: Sharing
Scenario: simple sharing of a folder by public link with password
Given user "Alice" has been created on the server with default attributes
- And user "Alice" has set up a client with these settings and password "1234":
- """
- [Accounts]
- 0\Folders\1\ignoreHiddenFiles=true
- 0\Folders\1\localPath=%client_sync_path%
- 0\Folders\1\paused=false
- 0\Folders\1\targetPath=/
- 0\Folders\1\version=2
- 0\Folders\1\virtualFilesMode=off
- 0\dav_user=alice
- 0\display-name=Alice
- 0\http_oauth=false
- 0\http_user=alice
- 0\url=%local_server%
- 0\user=Alice
- 0\version=1
- version=2
- """
+ And user "Alice" has set up a client with default settings and password "1234"
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
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