Skip to content

Commit ec92979

Browse files
Merge pull request opencloud-eu#15 from JankariTech/new-test
Fix selectors
2 parents e941f11 + 981bbf5 commit ec92979

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

test/gui/shared/scripts/names.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
add_Folder_Sync_Connection_groupBox_QGroupBox = {"name": "groupBox", "type": "QGroupBox", "visible": 1, "window": add_Folder_Sync_Connection_OCC_FolderWizard}
4141
add_Folder_Sync_Connection_Deselect_remote_folders_you_do_not_wish_to_synchronize_QLabel = {"text": "Deselect remote folders you do not wish to synchronize.", "type": "QLabel", "unnamed": 1, "visible": 1, "window": add_Folder_Sync_Connection_OCC_FolderWizard}
4242
folder_Sync_Connection_Deselect_remote_folders_QTreeWidget = {"aboveWidget": add_Folder_Sync_Connection_Deselect_remote_folders_you_do_not_wish_to_synchronize_QLabel, "type": "QTreeWidget", "unnamed": 1, "visible": 1, "window": add_Folder_Sync_Connection_OCC_FolderWizard}
43-
deselect_remote_folders_you_do_not_wish_to_synchronize_OpenCloud_QModelIndex = {"column": 0, "container": folder_Sync_Connection_Deselect_remote_folders_QTreeWidget, "text": "ownCloud", "type": "QModelIndex"}
43+
deselect_remote_folders_you_do_not_wish_to_synchronize_OpenCloud_QModelIndex = {"column": 0, "container": folder_Sync_Connection_Deselect_remote_folders_QTreeWidget, "text": "Personal", "type": "QModelIndex"}
4444
loginRequiredDialog_OCC_LoginRequiredDialog = {"name": "LoginRequiredDialog", "type": "OCC::LoginRequiredDialog", "visible": 1}
4545
loginRequiredDialog_contentWidget_QStackedWidget = {"name": "contentWidget", "type": "QStackedWidget", "visible": 1, "window": loginRequiredDialog_OCC_LoginRequiredDialog}
4646
contentWidget_contentWidget_QStackedWidget = {"container": setupWizardWindow_contentWidget_QStackedWidget, "name": "contentWidget", "type": "QStackedWidget", "visible": 1}
@@ -67,4 +67,9 @@
6767
quickWidget_Overlay = {"container": stackedWidget_quickWidget_OCC_QmlUtils_OCQuickWidget, "type": "Overlay", "unnamed": 1, "visible": True}
6868
scrollView_moreButton_Image = {"container": quickWidget_scrollView_ScrollView, "id": "moreButton", "source": "image://opencloud?theme=fontawesome&icon=&enabled=true&size=undefined", "type": "Image", "unnamed": 1, "visible": True}
6969
pause_sync_MenuItem = {"checkable": False, "container": quickWidget_Overlay, "enabled": True, "text": "Pause sync", "type": "MenuItem", "unnamed": 1, "visible": True}
70-
quit_OpenCloud_Desktop_QMessageBox = {"type": "QMessageBox", "unnamed": 1, "visible": 1, "windowTitle": "Quit OpenCloud Desktop"}
70+
quit_OpenCloud_Desktop_QMessageBox = {"type": "QMessageBox", "unnamed": 1, "visible": 1, "windowTitle": "Quit OpenCloud Desktop"}
71+
stackedWidget_Add_Space_QGroupBox = {"container": stack_stackedWidget_QStackedWidget, "title": "Add Space", "type": "QGroupBox", "unnamed": 1, "visible": 1}
72+
add_Space_label_QLabel = {"container": stackedWidget_Add_Space_QGroupBox, "name": "label", "type": "QLabel", "visible": 1}
73+
add_Space_qt_passive_wizardbutton0_QPushButton = {"container": stackedWidget_Add_Space_QGroupBox, "name": "__qt__passive_wizardbutton0", "type": "QPushButton", "visible": 1}
74+
add_Space_Deselect_remote_folders_you_do_not_wish_to_synchronize_QLabel = {"container": stackedWidget_Add_Space_QGroupBox, "text": "Deselect remote folders you do not wish to synchronize.", "type": "QLabel", "unnamed": 1, "visible": 1}
75+
add_Space_Deselect_remote_folders_you_do_not_wish_to_synchronize_QTreeWidget = {"aboveWidget": add_Space_Deselect_remote_folders_you_do_not_wish_to_synchronize_QLabel, "container": stackedWidget_Add_Space_QGroupBox, "type": "QTreeWidget", "unnamed": 1, "visible": 1}

test/gui/shared/scripts/pageObjects/SyncConnectionWizard.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ class SyncConnectionWizard:
1717
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
1818
}
1919
CHOOSE_LOCAL_SYNC_FOLDER = {
20+
"buddy": names.add_Space_label_QLabel,
2021
"name": "localFolderLineEdit",
2122
"type": "QLineEdit",
22-
"visible": 1,
23-
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
23+
"visible": 1
2424
}
2525
BACK_BUTTON = {
26-
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
26+
"window": names.stackedWidget_Add_Space_QGroupBox,
27+
"name": "__qt__passive_wizardbutton0",
2728
"type": "QPushButton",
28-
"text": "< &Back",
2929
"visible": 1,
3030
}
3131
NEXT_BUTTON = {
32-
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
32+
"window": names.stackedWidget_Add_Space_QGroupBox,
33+
"name": "__qt__passive_wizardbutton1",
3334
"type": "QPushButton",
34-
"text": "&Next >",
3535
"visible": 1,
3636
}
3737
SELECTIVE_SYNC_ROOT_FOLDER = {
3838
"column": 0,
39-
"container": names.folder_Sync_Connection_Deselect_remote_folders_QTreeWidget,
40-
"text": "ownCloud",
39+
"container": names.add_Space_Deselect_remote_folders_you_do_not_wish_to_synchronize_QTreeWidget,
40+
"text": "Personal",
4141
"type": "QModelIndex",
4242
}
4343
SYNC_DIALOG_FOLDER_TREE = {
@@ -49,7 +49,7 @@ class SyncConnectionWizard:
4949
"name": "qt_wizard_finish",
5050
"type": "QPushButton",
5151
"visible": 1,
52-
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
52+
"window": names.stackedWidget_Add_Space_QGroupBox,
5353
}
5454
REMOTE_FOLDER_TREE = {
5555
"container": names.add_Folder_Sync_Connection_groupBox_QGroupBox,
@@ -146,7 +146,7 @@ def set_sync_path_oc10(sync_path=""):
146146
def set_sync_path_ocis(sync_path):
147147
if not sync_path:
148148
sync_path = path.join(
149-
get_current_user_sync_path(), get_config("syncConnectionName")
149+
get_current_user_sync_path()
150150
)
151151
squish.type(
152152
squish.waitForObject(SyncConnectionWizard.CHOOSE_LOCAL_SYNC_FOLDER),

test/gui/tst_syncing/test.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Feature: Syncing files
6868
| user | Alice |
6969
| password | 1234 |
7070
When the user selects manual sync folder option in advanced section
71-
And the user selects "Alice Hansen" space in sync connection wizard
71+
And the user selects "Personal" space in sync connection wizard
7272
And the user sets the sync path in sync connection wizard
7373
And the user navigates back in the sync connection wizard
7474
And the user sets the temp folder "localSyncFolder" as local sync path in sync connection wizard

0 commit comments

Comments
 (0)