From 999703f2e33ea21e56d0f6a569be7cd95f615847 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 22 Jan 2006 00:38:16 +0000 Subject: Test checkbox group validation --- tests/FunctionalTests/protected/pages/Validation/CheckBox.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/FunctionalTests/protected/pages') 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"); + } } -- cgit v1.2.3