From 325357c121b4e7e843df40135b553abf6a3f8bba Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sun, 24 May 2020 13:26:00 +0200 Subject: [PATCH] Select English if the selector exists on selenium tests Signed-off-by: William Desportes --- test/selenium/TestBase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index c6e20859e3..616739386f 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -462,6 +462,11 @@ abstract class TestBase extends TestCase return; } + // Select English if the Language selector is available + if ($this->isElementPresent('id', 'sel-lang')) { + $this->selectByLabel($this->byId('sel-lang'), 'English'); + } + // Clear the input for Microsoft Edge (remebers the username) $this->waitForElement('id', 'input_username')->clear()->click()->sendKeys($username); $this->byId('input_password')->click()->sendKeys($password);