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-05-23 01:53:01 +0300
committerWilliam Desportes <williamdes@wdes.fr>2020-06-10 02:27:22 +0300
commit95089fbe49d3b904d9980e3f5cd2aafe705455b2 (patch)
treeee0c55fd5a4248199b5dc038d268171b8f8bd26c /test/selenium/CreateDropDatabaseTest.php
parentc91044c401c36bc792a127421cae6de35bbd4f2a (diff)
Fix CreateDropDatabaseTest
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/selenium/CreateDropDatabaseTest.php')
-rw-r--r--test/selenium/CreateDropDatabaseTest.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/selenium/CreateDropDatabaseTest.php b/test/selenium/CreateDropDatabaseTest.php
index 274f115745..63bf9c4a64 100644
--- a/test/selenium/CreateDropDatabaseTest.php
+++ b/test/selenium/CreateDropDatabaseTest.php
@@ -49,10 +49,13 @@ class CreateDropDatabaseTest extends TestBase
$this->waitForElement('linkText', 'Database: ' . $this->database_name);
- $result = $this->dbQuery(
- 'SHOW DATABASES LIKE \'' . $this->database_name . '\';'
+ $this->dbQuery(
+ 'SHOW DATABASES LIKE \'' . $this->database_name . '\';',
+ function () {
+ $this->assertTrue($this->isElementPresent('className', 'table_results'));
+ $this->assertEquals($this->database_name, $this->getCellByTableClass('table_results', 1, 1));
+ }
);
- $this->assertEquals(1, $result->num_rows);
$this->dropDatabase();
}
@@ -92,9 +95,11 @@ class CreateDropDatabaseTest extends TestBase
'span.ajax_notification .alert-success'
);
- $result = $this->dbQuery(
- 'SHOW DATABASES LIKE \'' . $this->database_name . '\';'
+ $this->dbQuery(
+ 'SHOW DATABASES LIKE \'' . $this->database_name . '\';',
+ function () {
+ $this->assertTrue($this->isElementPresent('className', 'table_results'));
+ }
);
- $this->assertEquals(0, $result->num_rows);
}
}