Skip to content

Commit bb0cccf

Browse files
committed
Fix Selenium\ServerSettingsTest::testHideLogo test
Sometimes this test fails because the navigation sidebar is still loading. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent bb00f42 commit bb0cccf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/selenium/ServerSettingsTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PhpMyAdmin\Tests\Selenium;
66

7+
use function sleep;
8+
79
/**
810
* @coversNothing
911
*/
@@ -126,12 +128,14 @@ public function testHideLogo(): void
126128
$this->waitForElement('name', 'NavigationDisplayLogo')
127129
->click();
128130
$this->saveConfig();
131+
sleep(1);
129132
$this->assertFalse(
130133
$this->isElementPresent('id', 'imgpmalogo')
131134
);
132135

133136
$this->byCssSelector("a[href='#NavigationDisplayLogo']")->click();
134137
$this->saveConfig();
138+
sleep(1);
135139
$this->assertTrue(
136140
$this->isElementPresent('id', 'imgpmalogo')
137141
);

0 commit comments

Comments
 (0)