summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
blob: 3456dd407875f3e023c99aa92c510479de47ce4a (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
26
27
<?php

class RequiredFieldValidator extends TPage
{

}

class RequiredFieldTestCase extends SeleniumTestCase
{
	function setup()
	{
	    $this->open(Prado::getApplication()->getTestPage(__FILE__));
	}

	function testValidator()
	{
		$this->assertTextPresent("Basic TRequiredFieldValidator Test1");
		$this->assertNotVisible("validator1");
		$this->click("button1");
		$this->assertVisible("validator1");
		$this->type("text1", "test");
		$this->clickAndWait("button1");
		$this->assertNotVisible("validator1");
	}
}

?>