summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-06 22:34:49 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-06 22:34:49 +0100
commit5d9f6fc77131d75e6c73a7e57df8d967b6b09215 (patch)
tree6dc4083ddb2e40b3616e5be795725f901df42fc5 /tests/FunctionalTests/tickets
parentc09ff85baefcd84e399ca7987c738a76865732ab (diff)
Fixed some function tests; start working on porting them to Selenium2 interface
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rwxr-xr-xtests/FunctionalTests/tickets/tests/Ticket656TestCase.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php
index ff167b0e..9fe238b9 100755
--- a/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php
@@ -6,19 +6,20 @@ class Ticket656TestCase extends PradoGenericSeleniumTest
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket656');
$this->assertTitle("Verifying Ticket 656");
-
+
// First test, current date
$this->click($base."btnUpdate");
$this->pause(800);
$this->assertText($base."lblStatus",date("d-m-Y"));
-
+
// Then, set another date
+ $year=date('Y')-2;
$this->select($base."datePicker_day",20);
$this->select($base."datePicker_month", 10);
- $this->select($base."datePicker_year", 2008);
+ $this->select($base."datePicker_year", $year);
$this->click($base."btnUpdate");
$this->pause(800);
- $this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,2008)));
+ $this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,$year)));
}
} \ No newline at end of file