blob: ff167b0eadb9e3492c07ccee88fde6f9984246ef (
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
|
<?php
class Ticket656TestCase extends PradoGenericSeleniumTest
{
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)));
}
}
|