Skip to content

Commit cedeb33

Browse files
Merge pull request opencloud-eu#17 from JankariTech/fix-tests
Fix tests in `tst_syncing` suite
2 parents fa47416 + eb81194 commit cedeb33

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

test/gui/shared/scripts/names.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@
7373
add_Space_qt_passive_wizardbutton0_QPushButton = {"container": stackedWidget_Add_Space_QGroupBox, "name": "__qt__passive_wizardbutton0", "type": "QPushButton", "visible": 1}
7474
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}
7575
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}
76-
add_Space_qt_passive_wizardbutton1_QPushButton = {"container": stackedWidget_Add_Space_QGroupBox, "name": "__qt__passive_wizardbutton1", "type": "QPushButton", "visible": 1}
76+
add_Space_qt_passive_wizardbutton1_QPushButton = {"container": stackedWidget_Add_Space_QGroupBox, "name": "__qt__passive_wizardbutton1", "type": "QPushButton", "visible": 1}
77+
remove_Space_MenuItem = {"checkable": False, "container": quickWidget_Overlay, "enabled": True, "text": "Remove Space", "type": "MenuItem", "unnamed": 1, "visible": True}
78+
confirm_removal_of_Space_QMessageBox = {"type": "QMessageBox", "unnamed": 1, "visible": 1, "windowTitle": "Confirm removal of Space"}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ class SyncConnection:
5252
"window": names.confirm_Folder_Sync_Connection_Removal_QMessageBox,
5353
}
5454
REMOVE_FOLDER_SYNC_CONNECTION_BUTTON = {
55-
"text": "Remove Folder Sync Connection",
55+
"text": "Remove Space",
5656
"type": "QPushButton",
5757
"unnamed": 1,
5858
"visible": 1,
59-
"window": names.confirm_Folder_Sync_Connection_Removal_QMessageBox,
59+
"window": names.confirm_removal_of_Space_QMessageBox,
6060
}
6161

6262
@staticmethod
@@ -148,7 +148,7 @@ def get_folder_connection_count():
148148

149149
@staticmethod
150150
def remove_folder_sync_connection():
151-
SyncConnection.perform_action("Remove folder sync connection")
151+
SyncConnection.perform_action("Remove Space")
152152

153153
@staticmethod
154154
def cancel_folder_sync_connection_removal():

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ class SyncConnectionWizard:
6565
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
6666
}
6767
SELECTIVE_SYNC_TREE_HEADER = {
68-
"container": names.folder_Sync_Connection_Deselect_remote_folders_QTreeWidget,
68+
"container": names.add_Space_Deselect_remote_folders_you_do_not_wish_to_synchronize_QTreeWidget,
6969
"orientation": 1,
7070
"type": "QHeaderView",
7171
"unnamed": 1,
7272
"visible": 1,
7373
}
7474
CANCEL_FOLDER_SYNC_CONNECTION_WIZARD = {
75-
"window": names.add_Folder_Sync_Connection_OCC_FolderWizard,
75+
"window": names.stackedWidget_Add_Space_QGroupBox,
7676
"name": "qt_wizard_cancel",
7777
"type": "QPushButton",
7878
"visible": 1,

test/gui/shared/steps/sync_context.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,6 @@ def step(context, folder_name):
287287
test.compare(True, has_folder, 'Folder should be in the remote list')
288288

289289

290-
@When('the user selects remove folder sync connection option')
291-
def step(context):
292-
SyncConnection.remove_folder_sync_connection()
293-
294-
295-
@When('the user cancels the folder sync connection removal dialog')
296-
def step(context):
297-
SyncConnection.cancel_folder_sync_connection_removal()
298-
299-
300290
@When('the user removes the folder sync connection')
301291
def step(context):
302292
SyncConnection.remove_folder_sync_connection()

test/gui/tst_syncing/test.feature

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ Feature: Syncing files
479479
Scenario: remove folder sync connection
480480
Given user "Alice" has created folder "simple-folder" in the server
481481
And user "Alice" has set up a client with default settings
482-
When the user selects remove folder sync connection option
483-
And the user cancels the folder sync connection removal dialog
484-
And the user removes the folder sync connection
482+
When the user removes the folder sync connection
485483
Then the sync folder list should be empty
486484
And the folder "simple-folder" should exist on the file system
487485
And as "Alice" folder "simple-folder" should exist in the server

0 commit comments

Comments
 (0)