summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
blob: cc35acccdde864cd8fb20cf912037aa4a18629f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

class testInitialValueRequired extends TPage
{

}

class InitialValueRequiredTestCase extends SeleniumTestCase
{
	function test()
	{
		$page = Prado::getApplication()->getTestPage(__FILE__);
		$this->open($page);
		$this->assertTitle("InitialValue Validation Test");
		$this->assertNotVisible("ctl0_Content_validator1");
		$this->type("ctl0_Content_text1", "hello");
		$this->clickAndWait("ctl0_Content_submit");
		$this->assertNotVisible("ctl0_Content_validator1");
		$this->type("ctl0_Content_text1", "test");
		$this->click("ctl0_Content_submit");
		$this->assertVisible("ctl0_Content_validator1");
	}
}

?>