diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-12-22 09:12:29 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-09 15:58:24 +0100 |
commit | fd9710bb441fa94f2aa1c9b5b200d3fe7f56a68c (patch) | |
tree | 5701c7517d5e0a23927a2b83042a85d2aa0d702b | |
parent | eb6a945332bdcd2486607072a6bb425820927b3b (diff) | |
download | nextcloud-server-fd9710bb441fa94f2aa1c9b5b200d3fe7f56a68c.tar.gz nextcloud-server-fd9710bb441fa94f2aa1c9b5b200d3fe7f56a68c.zip |
Add missing timeout multiplier
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | tests/acceptance/features/bootstrap/FilesAppContext.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php index d0acc6ad89a..060e958e0e6 100644 --- a/tests/acceptance/features/bootstrap/FilesAppContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppContext.php @@ -495,7 +495,9 @@ class FilesAppContext implements Context, ActorAwareInterface { * @When I see that the :tabName tab in the details view is eventually loaded */ public function iSeeThatTheTabInTheDetailsViewIsEventuallyLoaded($tabName) { - if (!$this->waitForElementToBeEventuallyNotShown(self::loadingIconForTabInCurrentSectionDetailsViewNamed($tabName), $timeout = 10)) { + if (!$this->waitForElementToBeEventuallyNotShown( + self::loadingIconForTabInCurrentSectionDetailsViewNamed($tabName), + $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) { PHPUnit_Framework_Assert::fail("The $tabName tab in the details view has not been loaded after $timeout seconds"); } } @@ -511,7 +513,9 @@ class FilesAppContext implements Context, ActorAwareInterface { * @Then I see that the working icon for password protect is eventually not shown */ public function iSeeThatTheWorkingIconForPasswordProtectIsEventuallyNotShown() { - if (!$this->waitForElementToBeEventuallyNotShown(self::passwordProtectWorkingIcon(), $timeout = 10)) { + if (!$this->waitForElementToBeEventuallyNotShown( + self::passwordProtectWorkingIcon(), + $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) { PHPUnit_Framework_Assert::fail("The working icon for password protect is still shown after $timeout seconds"); } } |