summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/validators/tests/DatePickerTestCase.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
index ab7ab897..872cc9a6 100644
--- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
@@ -3,7 +3,7 @@
class DatePickerTestCase extends SeleniumTestCase
{
function test()
- {
+ {
$base = "ctl0_Content_";
$this->open("validators/index.php?page=DatePicker", "");
$this->verifyTextPresent("Date Picker validation Test", "");
@@ -13,7 +13,7 @@ class DatePickerTestCase extends SeleniumTestCase
$this->assertNotVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
$this->assertNotVisible("{$base}validator8", "");
-
+
$this->click("{$base}submit1");
$this->assertVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
@@ -24,11 +24,12 @@ class DatePickerTestCase extends SeleniumTestCase
$this->assertVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
$this->assertVisible("{$base}validator8", "");
-
+
$this->click("{$base}submit1");
$this->type("{$base}picker1", "13/4/2006");
$this->select("{$base}picker2_month", "label=9");
$this->select("{$base}picker2_day", "label=10");
+ $this->select("{$base}picker2_year", "label=2006");
$this->type("{$base}picker3", "14/4/2006");
$this->type("{$base}picker4", "7/4/2006");
$this->select("{$base}picker5_day", "label=6");
@@ -37,30 +38,30 @@ class DatePickerTestCase extends SeleniumTestCase
$this->select("{$base}picker6_month", "label=3");
$this->select("{$base}picker6_year", "label=2007");
$this->select("{$base}picker6_day", "label=5");
-
+
$this->click("{$base}submit1");
-
+
$this->assertNotVisible("{$base}validator1", "");
$this->assertVisible("{$base}validator2", "");
$this->assertNotVisible("{$base}validator4", "");
$this->assertNotVisible("{$base}validator5", "");
$this->assertVisible("{$base}validator6", "");
- $this->assertVisible("{$base}validator8", "");
-
+ $this->assertVisible("{$base}validator8", "");
+
$this->type("{$base}picker1", "20/4/2007");
$this->type("{$base}picker4", "29/4/2006");
- $this->select("{$base}picker6_day", "label=10");
-
+ $this->select("{$base}picker6_day", "label=10");
+
$this->clickAndWait("{$base}submit1");
-
+
$this->assertNotVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
$this->assertNotVisible("{$base}validator4", "");
$this->assertNotVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
- $this->assertNotVisible("{$base}validator8", "");
+ $this->assertNotVisible("{$base}validator8", "");
}
-
+
}
?> \ No newline at end of file