phpmyadmin/test/selenium/PmaSeleniumXssTest.php
Michal Čihař 8e927f8852 Provide sane defaults for login method
So that the credentials do not have to be repeated in every test.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 09:42:11 +01:00

37 lines
784 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Selenium TestCase for SQL querry window related tests
*
* @package PhpMyAdmin-test
* @subpackage Selenium
*/
require_once 'TestBase.php';
/**
* PmaSeleniumXSSTest class
*
* @package PhpMyAdmin-test
* @subpackage Selenium
*/
class PMA_SeleniumXSSTest extends PMA_SeleniumBase
{
/**
* Tests the SQL query tab with a null query
*
* @return void
*
* @group large
*/
public function testQueryTabWithNullValue()
{
$this->login();
$this->byLinkText("SQL")->click();
$this->waitForElement("byId", "queryboxf");
$this->byId("button_submit_query")->click();
$this->assertEquals("Missing value in the form!", $this->alertText());
}
}
?>