Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/* vim: set expandtab sw=4 ts=4 sts=4: */ | ||
/** | ||
* Selenium TestCase for login related tests | ||
* | ||
* @package PhpMyAdmin-test | ||
* @subpackage Selenium | ||
*/ | ||
require_once 'PmaSeleniumTestCase.php'; | ||
require_once 'Helper.php'; | ||
|
||
class PmaSeleniumCreateDropDatabaseTest extends PHPUnit_Extensions_SeleniumTestCase | ||
{ | ||
|
||
public function setUp() | ||
{ | ||
$helper = new Helper(); | ||
$this->setBrowser(Helper::getBrowserString()); | ||
$this->setBrowserUrl(TESTSUITE_PHPMYADMIN_HOST . TESTSUITE_PHPMYADMIN_URL); | ||
} | ||
|
||
public function testCreateDropDatabase() | ||
{ | ||
$log = new PmaSeleniumTestCase($this); | ||
$log->login(TESTSUITE_USER, TESTSUITE_PASSWORD); | ||
$this->selectFrame("frame_content"); | ||
$this->click("link=Databases"); | ||
$this->waitForPageToLoad("30000"); | ||
$this->type("id=text_create_db", "pma"); | ||
$this->click("id=buttonGo"); | ||
$this->assertTrue($this->isTextPresent("pma")); | ||
|
||
$this->click("link=pma"); | ||
$this->waitForPageToLoad("30000"); | ||
$this->click("link=Operations"); | ||
$this->waitForPageToLoad("30000"); | ||
$this->click("id=drop_db_anchor"); | ||
$this->click("//button[@type='button']"); | ||
|
||
} | ||
} |