Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-11-02 21:35:32 +0300
committerGitHub <noreply@github.com>2018-11-02 21:35:32 +0300
commit927130ef344bd5e9f9449504eb6511ca4a2e524d (patch)
tree6c6a6d4b699631b37835963efd3d9fbb08aae8a8 /tests
parentbc98330a5864c33e9e8517945fc9e7bbd83237d8 (diff)
parentfec8d12fc568c70ebae86e4d8c22fc90df54d4de (diff)
Merge pull request #12215 from nextcloud/wait-for-the-link-share-menu-to-open-in-acceptance-tests
Wait for the link share menu to open in acceptance tests
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppContext.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php
index 4a7af441e57..d9ac6431716 100644
--- a/tests/acceptance/features/bootstrap/FilesAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppContext.php
@@ -350,6 +350,14 @@ class FilesAppContext implements Context, ActorAwareInterface {
$this->actor->find(FileListContext::shareActionForFile(self::currentSectionMainView(), $fileName), 10)->click();
$this->actor->find(self::shareLinkAddNewButton(), 5)->click();
+
+ // Wait until the menu was opened after the share creation to continue.
+ if (!WaitFor::elementToBeEventuallyShown(
+ $this->actor,
+ self::shareLinkMenu(),
+ $timeout = 5 * $this->actor->getFindTimeoutMultiplier())) {
+ PHPUnit_Framework_Assert::fail("The share link menu is not open yet after $timeout seconds");
+ }
}
/**