summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators
diff options
context:
space:
mode:
authorctrlaltca <ctrlaltca@gmail.com>2013-11-26 03:01:40 -0800
committerctrlaltca <ctrlaltca@gmail.com>2013-11-26 03:01:40 -0800
commita4e4839d9f09d27b6f0cba92fad0231632b3a04d (patch)
tree2a2f353f2f7b0fd6cde035068a2036ab630f688b /tests/FunctionalTests/validators
parent2b11341614ac4a15be697fa8acad07055154ac54 (diff)
parent65adcbec2cc9a00a5b0611e34c7141bf4e6d63f7 (diff)
Merge pull request #491 from pradosoft/jquery
Main development switch to Jquery
Diffstat (limited to 'tests/FunctionalTests/validators')
-rwxr-xr-xtests/FunctionalTests/validators/protected/pages/ConditionalValidation.page2
-rwxr-xr-xtests/FunctionalTests/validators/tests/CompareValidatorTestCase.php1
-rwxr-xr-xtests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php5
-rwxr-xr-xtests/FunctionalTests/validators/tests/DatePickerTestCase.php7
4 files changed, 9 insertions, 6 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.page b/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.page
index ad43135b..582fff59 100755
--- a/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.page
+++ b/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.page
@@ -16,7 +16,7 @@
ErrorMessage="*"
ControlCssClass="required">
<prop:ClientSide.OnValidate>
- sender.enabled = $('<%= $this->check1->ClientID %>').checked;
+ sender.enabled = $('#<%= $this->check1->ClientID %>').get(0).checked;
</prop:ClientSide.OnValidate>
</com:TRequiredFieldValidator>
diff --git a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php
index 187351c1..0c18f43b 100755
--- a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php
+++ b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php
@@ -28,6 +28,7 @@ class CompareValidatorTestCase extends PradoGenericSeleniumTest
$this->type("{$base}text3", "12312");
$this->click("//input[@type='submit' and @value='Test']", "");
+ $this->pause(500);
$this->assertVisible("{$base}validator2");
$this->type("{$base}text3", "13/1/2005");
diff --git a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
index 7ec220f0..58a74fe4 100755
--- a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
@@ -7,11 +7,11 @@ class DataTypeValidatorTestCase extends PradoGenericSeleniumTest
{
function test()
{
- $this->setSpeed(500);
$base = "ctl0_Content_";
$this->open("validators/index.php?page=DataTypeValidator", "");
$this->verifyTextPresent("Data Type Validator Tests", "");
$this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->pause(500);
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
@@ -21,6 +21,7 @@ class DataTypeValidatorTestCase extends PradoGenericSeleniumTest
$this->type("{$base}textbox2", "b");
$this->type("{$base}textbox3", "c");
$this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->pause(500);
$this->assertVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
@@ -39,11 +40,11 @@ class DataTypeValidatorTestCase extends PradoGenericSeleniumTest
$this->type("{$base}textbox2", "-12.5");
$this->type("{$base}textbox3", "2/13/2005");
$this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->pause(500);
$this->assertVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
$this->assertVisible("{$base}validator3");
- $this->setSpeed(0);
}
}
diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
index e7425a33..ab37ec06 100755
--- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
@@ -17,6 +17,7 @@ class DatePickerTestCase extends PradoGenericSeleniumTest
$this->assertNotVisible("{$base}validator8", "");
$this->click("{$base}submit1");
+ $this->pause(500);
$this->assertVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
@@ -27,8 +28,8 @@ class DatePickerTestCase extends PradoGenericSeleniumTest
$this->assertNotVisible("{$base}validator6", "");
$this->assertVisible("{$base}validator8", "");
- $this->click("{$base}submit1");
- $this->pause(250);
+ $this->clickAndWait("{$base}submit1");
+
$this->type("{$base}picker1", "13/4/$year");
$this->select("{$base}picker2_month", "label=9");
$this->select("{$base}picker2_day", "label=10");
@@ -43,8 +44,8 @@ class DatePickerTestCase extends PradoGenericSeleniumTest
$this->select("{$base}picker6_month", "label=3");
$this->select("{$base}picker6_year", "label=$year2");
$this->select("{$base}picker6_day", "label=5");
-
$this->click("{$base}submit1");
+ $this->pause(500);
$this->assertNotVisible("{$base}validator1", "");
$this->assertVisible("{$base}validator2", "");