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/scripts/pageObjects/AccountConnectionWizard.py6
-rw-r--r--test/gui/shared/steps/steps.py6
-rw-r--r--test/gui/tst_syncing/test.feature2
3 files changed, 11 insertions, 3 deletions
diff --git a/test/gui/shared/scripts/pageObjects/AccountConnectionWizard.py b/test/gui/shared/scripts/pageObjects/AccountConnectionWizard.py
index a96eb073c..ab4357b74 100644
--- a/test/gui/shared/scripts/pageObjects/AccountConnectionWizard.py
+++ b/test/gui/shared/scripts/pageObjects/AccountConnectionWizard.py
@@ -52,6 +52,12 @@ class AccountConnectionWizard:
"visible": 1,
"window": names.owncloudWizard_OCC_OwncloudWizard,
}
+ CHOOSE_LOCAL_SYNC_FOLDER = {
+ "container": names.add_Folder_Sync_Connection_groupBox_QGroupBox,
+ "name": "localFolderLineEdit",
+ "type": "QLineEdit",
+ "visible": 1,
+ }
SELECTIVE_SYNC_DIALOG = names.choose_What_to_Sync_OCC_SelectiveSyncDialog
SELECT_REMOTE_DESTINATION_FOLDER_WIZARD = (
names.add_Folder_Sync_Connection_groupBox_QGroupBox
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index 5c622bcd7..9f4c189ae 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -1472,10 +1472,12 @@ def step(context):
clickButton(waitForObject(newAccount.NEXT_BUTTON))
-@When("the user clicks on the next button in sync connection wizard")
-def step(context):
+@When('the user "|any|" clicks on the next button in sync connection wizard')
+def step(context, userName):
newAccount = AccountConnectionWizard()
waitForObject(newAccount.ADD_FOLDER_SYNC_CONNECTION_WIZARD)
+ syncPath = createUserSyncPath(context, userName)
+ type(newAccount.CHOOSE_LOCAL_SYNC_FOLDER, syncPath)
clickButton(waitForObject(newAccount.ADD_FOLDER_SYNC_CONNECTION_NEXT_BUTTON))
diff --git a/test/gui/tst_syncing/test.feature b/test/gui/tst_syncing/test.feature
index 976a0bb27..db4f4d38e 100644
--- a/test/gui/tst_syncing/test.feature
+++ b/test/gui/tst_syncing/test.feature
@@ -66,7 +66,7 @@ Feature: Syncing files
| user | Alice |
| password | 1234 |
When the user selects configure_synchronization_manually option in advanced section
- And the user clicks on the next button in sync connection wizard
+ And the user "Alice" clicks on the next button in sync connection wizard
And the user selects "ownCloud" as a remote destination folder
Then the sync all checkbox should be checked