summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php
blob: 106f7a00dc1f6512de76e835b932207b50b19bc1 (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
28
29
<?php

//New Test
class CustomValidatorTestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$base = "ctl0_Content_";
		$this->open("validators/index.php?page=CustomValidator", "");
		$this->assertTextPresent("Prado CustomValidator Tests", "");
		$this->assertNotVisible("{$base}validator1");

		$this->click("//input[@type='submit' and @value='Test']", "");
		$this->assertVisible("{$base}validator1");
		
		$this->type("{$base}text1", "Prado");
		$this->pause(250);
		$this->assertNotVisible("{$base}validator1");
		$this->type("{$base}text1", "Testing");
		$this->pause(250);
		$this->assertVisible("{$base}validator1");
		$this->type("{$base}text1", "Prado");
		$this->pause(250);
		$this->assertNotVisible("{$base}validator1");
		$this->clickAndWait("//input[@type='submit' and @value='Test']", "");
		$this->assertNotVisible("{$base}validator1");

	}
}