From 63d2dcf74a676b3fb3643392473ed788a23c87e3 Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Mon, 10 May 2021 16:13:59 +0545 Subject: wait for the public link to be displayed --- test/gui/shared/steps/steps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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): -- cgit v1.2.3