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:
authorWilliam Desportes <williamdes@wdes.fr>2020-06-09 01:49:26 +0300
committerWilliam Desportes <williamdes@wdes.fr>2020-06-10 02:27:22 +0300
commitcad508602d79a70d75582b729465a2086918728a (patch)
treecd957c55a1d45040cd8b5d9d4183f8007ab40acb /test/selenium
parentb52e878bbb6542ffe770ae0454ed6feea13ce2f2 (diff)
Disable database creation on some tests
And add some sleep time on LoginTest Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/selenium')
-rw-r--r--test/selenium/ChangePasswordTest.php7
-rw-r--r--test/selenium/CreateRemoveUserTest.php7
-rw-r--r--test/selenium/LoginTest.php10
-rw-r--r--test/selenium/ServerSettingsTest.php7
-rw-r--r--test/selenium/XssTest.php7
5 files changed, 38 insertions, 0 deletions
diff --git a/test/selenium/ChangePasswordTest.php b/test/selenium/ChangePasswordTest.php
index 35c6769dde..a90291fda5 100644
--- a/test/selenium/ChangePasswordTest.php
+++ b/test/selenium/ChangePasswordTest.php
@@ -19,6 +19,13 @@ use function trim;
class ChangePasswordTest extends TestBase
{
/**
+ * Create a test database for this test class
+ *
+ * @var bool
+ */
+ protected static $createDatabase = false;
+
+ /**
* Array of AssertionFailedError->toString
*
* @var string[]
diff --git a/test/selenium/CreateRemoveUserTest.php b/test/selenium/CreateRemoveUserTest.php
index 88fde38263..b478368c2a 100644
--- a/test/selenium/CreateRemoveUserTest.php
+++ b/test/selenium/CreateRemoveUserTest.php
@@ -15,6 +15,13 @@ namespace PhpMyAdmin\Tests\Selenium;
class CreateRemoveUserTest extends TestBase
{
/**
+ * Create a test database for this test class
+ *
+ * @var bool
+ */
+ protected static $createDatabase = false;
+
+ /**
* Username for the user
*
* @access private
diff --git a/test/selenium/LoginTest.php b/test/selenium/LoginTest.php
index 29d638d40f..493b281ff7 100644
--- a/test/selenium/LoginTest.php
+++ b/test/selenium/LoginTest.php
@@ -7,6 +7,8 @@ declare(strict_types=1);
namespace PhpMyAdmin\Tests\Selenium;
+use function sleep;
+
/**
* LoginTest class
*
@@ -14,6 +16,13 @@ namespace PhpMyAdmin\Tests\Selenium;
*/
class LoginTest extends TestBase
{
+ /**
+ * Create a test database for this test class
+ *
+ * @var bool
+ */
+ protected static $createDatabase = false;
+
protected function setUp(): void
{
parent::setUp();
@@ -45,6 +54,7 @@ class LoginTest extends TestBase
public function testLoginWithWrongPassword()
{
$this->login('Admin', 'Admin');
+ sleep(1);
$this->waitForElement('xpath', '//*[@class="alert alert-danger" and contains(.,\'Access denied for\')]');
$this->assertTrue($this->isUnsuccessLogin());
}
diff --git a/test/selenium/ServerSettingsTest.php b/test/selenium/ServerSettingsTest.php
index c0730504ae..dc65fc81cc 100644
--- a/test/selenium/ServerSettingsTest.php
+++ b/test/selenium/ServerSettingsTest.php
@@ -15,6 +15,13 @@ namespace PhpMyAdmin\Tests\Selenium;
class ServerSettingsTest extends TestBase
{
/**
+ * Create a test database for this test class
+ *
+ * @var bool
+ */
+ protected static $createDatabase = false;
+
+ /**
* setUp function
*/
protected function setUp(): void
diff --git a/test/selenium/XssTest.php b/test/selenium/XssTest.php
index 367350ec48..9d1d79e288 100644
--- a/test/selenium/XssTest.php
+++ b/test/selenium/XssTest.php
@@ -14,6 +14,13 @@ namespace PhpMyAdmin\Tests\Selenium;
*/
class XssTest extends TestBase
{
+ /**
+ * Create a test database for this test class
+ *
+ * @var bool
+ */
+ protected static $createDatabase = false;
+
protected function setUp(): void
{
parent::setUp();