diff options
author | saw-jan <saw.jan.grg3e@gmail.com> | 2022-03-15 12:00:12 +0300 |
---|---|---|
committer | Sawjan Gurung <saw.jan.grg3e@gmail.com> | 2022-03-15 13:05:11 +0300 |
commit | b35eec30325eb9933339e02e66640ca2082ade35 (patch) | |
tree | 652684e4acc49308310124d57ac651d595aa2d62 /test | |
parent | ef27aaca3d9cdfc119620c080b25ace737109dd2 (diff) |
make object selector a class variable
Diffstat (limited to 'test')
-rw-r--r-- | test/gui/shared/scripts/pageObjects/SharingDialog.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/gui/shared/scripts/pageObjects/SharingDialog.py b/test/gui/shared/scripts/pageObjects/SharingDialog.py index b5d96ac34..8be67bef3 100644 --- a/test/gui/shared/scripts/pageObjects/SharingDialog.py +++ b/test/gui/shared/scripts/pageObjects/SharingDialog.py @@ -50,6 +50,12 @@ class SharingDialog: "window": names.sharingDialog_OCC_ShareDialog, } SHARING_DIALOG_ERROR = {"name": "errorLabel", "type": "QLabel", "visible": 1} + SHARING_DIALOG_CONTRIBUTOR_ROW = { + "container": names.sharingDialogUG_scrollArea_QScrollArea, + "name": "sharedWith", + "type": "QLabel", + "visible": 1, + } def getAvailablePermission(self): editChecked = squish.waitForObjectExists(self.EDIT_PERMISSIONS_CHECKBOX).checked @@ -90,15 +96,8 @@ class SharingDialog: squish.clickButton(squish.waitForObject(self.SHARE_PERMISSIONS_CHECKBOX)) # wait for share to complete - squish.waitForObjectExists( - { - "container": names.sharingDialogUG_scrollArea_QScrollArea, - "name": "sharedWith", - "occurrence": collaboratorCount, - "type": "QLabel", - "visible": 1, - } - ) + self.SHARING_DIALOG_CONTRIBUTOR_ROW["occurrence"] = collaboratorCount + squish.waitForObjectExists(self.SHARING_DIALOG_CONTRIBUTOR_ROW) def getSharingDialogMessage(self): return str(squish.waitForObjectExists(self.SHARING_DIALOG).text) |