summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2006-01-22 00:38:16 +0000
committerwei <>2006-01-22 00:38:16 +0000
commit999703f2e33ea21e56d0f6a569be7cd95f615847 (patch)
tree9ccb2a44785f009611fedb48d8c5eb241c9c6869 /tests
parent08297a6b9c0a1ddbe3756fd42e2bf0eaa2f6e83e (diff)
Test checkbox group validation
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/CheckBox.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php
index df6ff310..0a742abe 100644
--- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php
+++ b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php
@@ -23,8 +23,16 @@ class CheckBoxTestCase extends SeleniumTestCase
//test checkbox 2 should fire the validator
$this->assertNotVisible("ctl0_Content_validator1");
$this->click("ctl0_Content_checkbox2");
- $this->pasue(100);
+ $this->pause(100);
$this->assertVisible("ctl0_Content_validator1");
+
+ //write some text, and see what it
+ $this->type('ctl0_Content_TextBox', "hello");
+ $this->pause(100);
+ $this->assertNotVisibe("ctl0_Content_validator1");
+ $this->clickAndWait("ctl0_Content_checkbox2"); //submit
+ $this->assertNotVisibe("ctl0_Content_validator1");
+
}
}