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:
authorArtur Neumann <artur@jankaritech.com>2021-05-10 13:28:59 +0300
committerArtur Neumann <artur@jankaritech.com>2021-05-11 06:16:02 +0300
commit63d2dcf74a676b3fb3643392473ed788a23c87e3 (patch)
treef4ba2ab8cdb4c14b52fa564c806a2a4ec43d4fc4 /test
parent201642ae17820bbdc77c3ff12f276b35685f5b4f (diff)
wait for the public link to be displayed
Diffstat (limited to 'test')
-rw-r--r--test/gui/shared/steps/steps.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index 675911dfa..d7c6fd92f 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -407,7 +407,7 @@ def step(context, filename):
"text": RegularExpression(buildConflictedRegex(filename)),
"type": "QModelIndex"
})
-
+
@When('the user selects the unsynced files tab')
def step(context):
@@ -519,6 +519,7 @@ def step(context, permissions, resource):
clickButton(waitForObject(radioObjectName))
clickButton(waitForObject(names.oCC_ShareLinkWidget_createShareButton_QPushButton))
+ waitFor(lambda: (findObject(names.linkShares_0_0_QModelIndex).displayText == "Public link"))
@When('the user creates a new public link with permissions "|any|" for folder "|any|" with password "|any|" using the client-UI')
@@ -548,6 +549,7 @@ def createPublicShare(context, resource, role):
openPublicLinkDialog(context, resource)
clickButton(waitForObject(radioObjectName))
clickButton(waitForObject(names.oCC_ShareLinkWidget_createShareButton_QPushButton))
+ waitFor(lambda: (findObject(names.linkShares_0_0_QModelIndex).displayText == "Public link"))
@When('the user creates a new public link for folder "|any|" using the client-UI with these details:')
def step(context, resource):