Skip to content

Commit

Permalink
Merge pull request #12215 from nextcloud/wait-for-the-link-share-menu…
Browse files Browse the repository at this point in the history
…-to-open-in-acceptance-tests

Wait for the link share menu to open in acceptance tests
  • Loading branch information
rullzer authored Nov 2, 2018
2 parents bc98330 + fec8d12 commit 927130e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/acceptance/features/bootstrap/FilesAppContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@ public function iShareTheLinkFor($fileName) {
$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");
}
}

/**
Expand Down

0 comments on commit 927130e

Please sign in to comment.