diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-04-22 21:50:36 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-04-22 21:51:26 +0300 |
commit | f19a3d95c46de16764bcf7ab41a27f0e315c2148 (patch) | |
tree | 9ab8d742732d1b470b1551f314ba53f5b5208452 /test | |
parent | f1e4b4af471bf0c76c3338a175978e8d271af8d2 (diff) |
Remove LanguageManager::getSelectorDisplay method
Redesign the language selector to use Bootstrap style.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/Plugins/Auth/AuthenticationCookieTest.php | 8 | ||||
-rw-r--r-- | test/selenium/TestBase.php | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/classes/Plugins/Auth/AuthenticationCookieTest.php b/test/classes/Plugins/Auth/AuthenticationCookieTest.php index ba94b8acaf..1e8f7cb919 100644 --- a/test/classes/Plugins/Auth/AuthenticationCookieTest.php +++ b/test/classes/Plugins/Auth/AuthenticationCookieTest.php @@ -299,8 +299,8 @@ class AuthenticationCookieTest extends AbstractNetworkTestCase $loc = LOCALE_PATH . '/cs/LC_MESSAGES/phpmyadmin.mo'; if (is_readable($loc)) { $this->assertStringContainsString( - '<select name="lang" class="autosubmit" lang="en" dir="ltr" ' . - 'id="sel-lang">', + '<select name="lang" class="form-select autosubmit" lang="en" dir="ltr"' + . ' id="languageSelect" aria-labelledby="languageSelectLabel">', $result ); } @@ -379,8 +379,8 @@ class AuthenticationCookieTest extends AbstractNetworkTestCase $loc = LOCALE_PATH . '/cs/LC_MESSAGES/phpmyadmin.mo'; if (is_readable($loc)) { $this->assertStringContainsString( - '<select name="lang" class="autosubmit" lang="en" dir="ltr" ' . - 'id="sel-lang">', + '<select name="lang" class="form-select autosubmit" lang="en" dir="ltr"' + . ' id="languageSelect" aria-labelledby="languageSelectLabel">', $result ); } diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index fa41beac69..0477b7a434 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -521,8 +521,8 @@ abstract class TestBase extends TestCase } // Select English if the Language selector is available - if ($this->isElementPresent('id', 'sel-lang')) { - $this->selectByLabel($this->byId('sel-lang'), 'English'); + if ($this->isElementPresent('id', 'languageSelect')) { + $this->selectByLabel($this->byId('languageSelect'), 'English'); } // Clear the input for Microsoft Edge (remembers the username) |