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

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2020-07-18 11:29:15 +0300
committerWilliam Desportes <williamdes@wdes.fr>2020-07-18 11:29:15 +0300
commite78eb340bce21151355b3e82109f23ce4e7dc2c4 (patch)
treec711349ca7bacc00454463c5c8c776cd2d258ac5 /test/selenium
parentce6a12bf56982028064d69e7c9a86a9a5a12c5fe (diff)
Some code improvements and fixes related to issue reported by Scrutinizer
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/selenium')
-rw-r--r--test/selenium/TestBase.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php
index 19abdac614..03028f7078 100644
--- a/test/selenium/TestBase.php
+++ b/test/selenium/TestBase.php
@@ -719,14 +719,12 @@ abstract class TestBase extends TestCase
*
* @param string $func Locate using - byCss, byXPath, etc
* @param string $arg Selector
- *
- * @return bool Whether or not the element disappeared
*/
- public function waitForElementNotPresent(string $func, string $arg): bool
+ public function waitForElementNotPresent(string $func, string $arg): void
{
while (true) {
if (! $this->isElementPresent($func, $arg)) {
- return true;
+ return;
}
usleep(5000);
}