From 1910579791a633b2eef25707ff490a79c4fe7494 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sun, 24 May 2020 13:25:12 +0200 Subject: Add getters for some ENVs in the selenium test suite Signed-off-by: William Desportes --- test/selenium/ChangePasswordTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/selenium/ChangePasswordTest.php') diff --git a/test/selenium/ChangePasswordTest.php b/test/selenium/ChangePasswordTest.php index da5b2b9882..183fc3d986 100644 --- a/test/selenium/ChangePasswordTest.php +++ b/test/selenium/ChangePasswordTest.php @@ -64,13 +64,13 @@ class ChangePasswordTest extends TestBase $this->assertNotEquals('', $this->byName('pma_pw2')->getAttribute('value')); $this->assertNotEquals('', $this->byName('generated_pw')->getAttribute('value')); - if ($GLOBALS['TESTSUITE_PASSWORD'] != '') { + if ($this->getTestSuiteUserPassword() !== '') { $this->byName('pma_pw')->clear(); $this->byName('pma_pw2')->clear(); - $this->byName('pma_pw')->click()->sendKeys($GLOBALS['TESTSUITE_PASSWORD']); + $this->byName('pma_pw')->click()->sendKeys($this->getTestSuiteUserPassword()); - $this->byName('pma_pw2')->click()->sendKeys($GLOBALS['TESTSUITE_PASSWORD']); + $this->byName('pma_pw2')->click()->sendKeys($this->getTestSuiteUserPassword()); } else { $this->byId('nopass_1')->click(); } -- cgit v1.2.3