diff options
Diffstat (limited to 'tests/FunctionalTests/protected/pages/Validation')
-rw-r--r-- | tests/FunctionalTests/protected/pages/Validation/CheckBox.php | 2 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php index 7eba9317..6e2d8ee5 100644 --- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php +++ b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php @@ -9,7 +9,7 @@ class CheckBox extends TPage }
}
-class CheckBoxTestCase extends SeleniumTestCase
+class CheckBoxTestCase2 extends SeleniumTestCase
{
function setup()
{
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php index ff24b93a..0399d4a3 100644 --- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php +++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php @@ -19,12 +19,12 @@ class RequiredFieldTestCase extends SeleniumTestCase function testValidator()
{
$this->assertTextPresent("Basic TRequiredFieldValidator Test1");
- $this->assertNotVisible("validator1");
- $this->click("button1");
- $this->assertVisible("validator1");
- $this->type("text1", "test");
- $this->clickAndWait("button1");
- $this->assertNotVisible("validator1");
+ $this->assertNotVisible("ctl0_Content_validator1");
+ $this->click("ctl0_Content_button1");
+ $this->assertVisible("ctl0_Content_validator1");
+ $this->type("ctl0_Content_text1", "test");
+ $this->clickAndWait("ctl0_Content_button1");
+ $this->assertNotVisible("ctl0_Content_validator1");
}
}
|