phpmyadmin/test/selenium/PmaSeleniumXssTest.php
Michal Čihař d1ee1bb3d3 Move waiting for elements after login to tests
We can not wait in login itself as it is used for failing tests as well.

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

37 lines
802 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->waitForElement('byLinkText', "SQL")->click();
$this->waitForElement("byId", "queryboxf");
$this->byId("button_submit_query")->click();
$this->assertEquals("Missing value in the form!", $this->alertText());
}
}
?>