From bb0cccf931e7262e7ac88edae3aa88139f3f8f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 11 Feb 2022 16:25:55 -0300 Subject: [PATCH] Fix Selenium\ServerSettingsTest::testHideLogo test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes this test fails because the navigation sidebar is still loading. Signed-off-by: MaurĂ­cio Meneghini Fauth --- test/selenium/ServerSettingsTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/selenium/ServerSettingsTest.php b/test/selenium/ServerSettingsTest.php index 98f1604551..23e7869c48 100644 --- a/test/selenium/ServerSettingsTest.php +++ b/test/selenium/ServerSettingsTest.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; +use function sleep; + /** * @coversNothing */ @@ -126,12 +128,14 @@ class ServerSettingsTest extends TestBase $this->waitForElement('name', 'NavigationDisplayLogo') ->click(); $this->saveConfig(); + sleep(1); $this->assertFalse( $this->isElementPresent('id', 'imgpmalogo') ); $this->byCssSelector("a[href='#NavigationDisplayLogo']")->click(); $this->saveConfig(); + sleep(1); $this->assertTrue( $this->isElementPresent('id', 'imgpmalogo') );