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
path: root/test
diff options
context:
space:
mode:
authorsaw-jan <saw.jan.grg3e@gmail.com>2022-03-11 13:11:51 +0300
committerSawjan Gurung <saw.jan.grg3e@gmail.com>2022-03-15 13:05:11 +0300
commitef27aaca3d9cdfc119620c080b25ace737109dd2 (patch)
tree923e5feef56728ade7402b6bb32e6e6b85914b67 /test
parentb06fe6d05569bbbd457a6d77212a18abb184139e (diff)
wait for user share to complete before closing dialog
Diffstat (limited to 'test')
-rw-r--r--test/gui/shared/scripts/pageObjects/SharingDialog.py15
-rw-r--r--test/gui/shared/steps/steps.py4
2 files changed, 16 insertions, 3 deletions
diff --git a/test/gui/shared/scripts/pageObjects/SharingDialog.py b/test/gui/shared/scripts/pageObjects/SharingDialog.py
index e5008bba7..b5d96ac34 100644
--- a/test/gui/shared/scripts/pageObjects/SharingDialog.py
+++ b/test/gui/shared/scripts/pageObjects/SharingDialog.py
@@ -72,7 +72,9 @@ class SharingDialog:
collaborator,
)
- def addCollaborator(self, receiver, permissions, isGroup=False):
+ def addCollaborator(
+ self, receiver, permissions, isGroup=False, collaboratorCount=1
+ ):
self.selectCollaborator(receiver, isGroup)
permissionsList = permissions.split(",")
@@ -87,6 +89,17 @@ 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,
+ }
+ )
+
def getSharingDialogMessage(self):
return str(squish.waitForObjectExists(self.SHARING_DIALOG).text)
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index a784f42e9..7750b853c 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -331,10 +331,10 @@ def step(context, resource):
shareItem = SharingDialog()
# In the following loop we are trying to share resource with given permission to one user at a time given from the data table in the feature file
- for row in context.table[1:]:
+ for count, row in enumerate(context.table[1:]):
receiver = row[0]
permissions = row[1]
- shareItem.addCollaborator(receiver, permissions)
+ shareItem.addCollaborator(receiver, permissions, False, count + 1)
shareItem.closeSharingDialog()