Skip to content

Commit

Permalink
Fix Selenium\ServerSettingsTest::testHideLogo test
Browse files Browse the repository at this point in the history
Sometimes this test fails because the navigation sidebar is still
loading.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Feb 11, 2022
1 parent bb00f42 commit bb0cccf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/selenium/ServerSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace PhpMyAdmin\Tests\Selenium;

use function sleep;

/**
* @coversNothing
*/
Expand Down Expand Up @@ -126,12 +128,14 @@ public function testHideLogo(): void
$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')
);
Expand Down

0 comments on commit bb0cccf

Please sign in to comment.