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:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2021-03-03 02:31:02 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-03-03 02:31:02 +0300
commit6acd66bb89224b1ef31bda4b8f262cd71cbae70c (patch)
tree060e5c8bacd159cf8f8b1e489fb9c0e41860a152 /test/selenium
parent24cb353595ac0bbe41b4a86195a2f77c191390f3 (diff)
Fix ServerSettingsTest Selenium test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test/selenium')
-rw-r--r--test/selenium/ServerSettingsTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/selenium/ServerSettingsTest.php b/test/selenium/ServerSettingsTest.php
index 1dc2fa4535..8eca473fa9 100644
--- a/test/selenium/ServerSettingsTest.php
+++ b/test/selenium/ServerSettingsTest.php
@@ -46,7 +46,8 @@ class ServerSettingsTest extends TestBase
// Submit the form
$ele = $this->waitForElement(
'xpath',
- "//fieldset[not(contains(@style,'display: none;'))]//input[@value='Apply']"
+ "//div[contains(@class, 'tab-pane') and contains(@class, 'show')"
+ . " and contains(@class, 'active')]//input[@value='Apply']"
);
$this->scrollToBottom();
$this->moveto($ele);
@@ -82,6 +83,8 @@ class ServerSettingsTest extends TestBase
$this->isElementPresent('partialLinkText', $this->databaseName)
);
+ $this->waitForElement('xpath', "//a[contains(@href, '#Databases')]")->click();
+
$this->waitForElement('name', 'Servers-1-hide_db')->clear();
$this->saveConfig();
$this->assertTrue(
@@ -99,7 +102,7 @@ class ServerSettingsTest extends TestBase
$this->byPartialLinkText('SQL queries')->click();
$this->waitAjax();
- $this->waitForElement('className', 'tabs');
+ $this->waitForElement('className', 'nav-tabs');
$this->byPartialLinkText('SQL Query box')->click();
$this->assertTrue(