diff options
Diffstat (limited to 'tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php')
-rw-r--r-- | tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php b/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php new file mode 100644 index 00000000..3a5daa6a --- /dev/null +++ b/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php @@ -0,0 +1,31 @@ +<?php
+
+//New Test
+class CustomValidatorTestCase extends SeleniumTestCase
+{
+ 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");
+
+ }
+}
+
+?>
\ No newline at end of file |