blob: 229a68ebe617d56655c3591f61c6bafd42ff1f93 (
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
26
27
28
29
30
31
32
33
|
<?php
class Ticket785TestCase extends PradoGenericSeleniumTest
{
function test()
{
$year=date('Y')-1;
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket785');
$this->assertTitle("Verifying Ticket 785");
$this->assertText('selDate', '');
$this->select($base."datePicker_year", $year);
$this->pause(800);
$expectedDate=date("d-m").'-'.$year;
$this->assertText('selDate', $expectedDate);
$this->click($base."datePickerbutton");
$this->pause(800);
$this->click("css=input.todayButton");
$this->pause(800);
$this->clickAt("css=body","0,0"); // Hide calendar
$expectedDate=date("d-m-Y");
$this->assertText('selDate', $expectedDate);
$this->assertText('selDate2', '');
$this->type($base.'datePicker2', '12/05/2006');
$this->pause(800);
$this->clickAt("css=body","0,0");
$this->assertText('selDate2', '12/05/2006');
}
}
|