blob: df77334bf6be89dd0115bbe79c4fdfdd5e0afa95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
class Ticket656TestCase extends SeleniumTestCase
{
function test()
{
$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
$this->select($base."datePicker_day",20);
$this->select($base."datePicker_month", 10);
$this->select($base."datePicker_year", 2008);
$this->click($base."btnUpdate");
$this->pause(800);
$this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,2008)));
}
}
?>
|