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
diff options
context:
space:
mode:
authorSushmita Poudel <66173400+sushmita56@users.noreply.github.com>2022-07-11 07:16:29 +0300
committerGitHub <noreply@github.com>2022-07-11 07:16:29 +0300
commit1587b40a03bb17a8f18fd1c2a5cc0217efd10718 (patch)
tree5fd55f41e45a45e54872912d1353c71aaa190a5b
parentbc18bc7ae9eae70d087284d194747f2254463599 (diff)
added implicit wait for resource to sync (#9885)
-rw-r--r--test/gui/shared/steps/steps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index 39622638f..83d459a37 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -723,6 +723,11 @@ def step(context, tabName):
def openSharingDialog(context, resource, itemType='file'):
resource = getResourcePath(context, resource)
+ resourceExist = waitFor(
+ lambda: os.path.exists(resource), context.userData['maxSyncTimeout'] * 1000
+ )
+ if not resourceExist:
+ raise Exception("{} doesn't exists".format(resource))
waitFor(lambda: shareResource(resource), context.userData['maxSyncTimeout'] * 1000)