summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
new file mode 100644
index 00000000..cc35accc
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
@@ -0,0 +1,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");
+ }
+}
+
+?> \ No newline at end of file