Skip to content

Commit

Permalink
update selector for context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Mar 21, 2024
1 parent 341a0fe commit 4759c8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions test/gui/shared/scripts/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@
o_folderList_Personal_QModelIndex = {"column": 0, "container": stack_folderList_QTreeView, "text": "Personal", "type": "QModelIndex"}
add_Folder_Sync_Connection_tableView_QTableView = {"name": "tableView","type": "QTableView","visible": 1,"window": add_Folder_Sync_Connection_OCC_FolderWizard}
stack_scrollArea_QScrollArea = {"container": settings_stack_QStackedWidget, "name": "scrollArea", "type": "QScrollArea", "visible": 1}
stack_stackedWidget_QStackedWidget = {"container": settings_stack_QStackedWidget, "name": "stackedWidget", "type": "QStackedWidget", "visible": 1}
stackedWidget_quickWidget_QQuickWidget = {"container": stack_stackedWidget_QStackedWidget, "name": "quickWidget", "type": "QQuickWidget", "visible": 1}
quickWidget_scrollView_ScrollView = {"container": stackedWidget_quickWidget_QQuickWidget, "id": "scrollView", "type": "ScrollView", "unnamed": 1, "visible": True}
18 changes: 8 additions & 10 deletions test/gui/shared/scripts/pageObjects/SyncConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

class SyncConnection:
FOLDER_SYNC_CONNECTION = {
"container": names.settings_stack_QStackedWidget,
"name": "_folderList",
"type": "QListView",
"visible": 1,
"checkable": False,
"container": names.quickWidget_scrollView_ScrollView,
"type": "Button",
"unnamed": 1,
"visible": True,
}
MENU = {
"type": "QMenu",
Expand All @@ -32,14 +33,11 @@ class SyncConnection:

@staticmethod
def openMenu():
squish.openContextMenu(
squish.waitForObjectItem(
SyncConnection.FOLDER_SYNC_CONNECTION,
get_config('syncConnectionName'),
),
squish.mouseClick(
squish.waitForObject(SyncConnection.FOLDER_SYNC_CONNECTION),
0,
0,
squish.Qt.NoModifier,
squish.Qt.LeftButton,
)

@staticmethod
Expand Down

0 comments on commit 4759c8f

Please sign in to comment.