blob: 692e2451a367317ca23c9495748a2bc830f691aa (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
class Ticket592TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket592');
$this->assertEquals($this->title(), "Verifying Ticket 592");
$this->assertText("{$base}label1", "Label 1");
$this->byId("{$base}radio1")->click();
$this->byId("{$base}button1")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
$this->byId("{$base}radio2")->click();
$this->byId("{$base}button1")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
$this->byId("{$base}bad_radio1")->click();
$this->byId("{$base}button2")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
$this->byId("{$base}bad_radio2")->click();
$this->byId("{$base}button2")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
$this->byId("{$base}bad_radio3")->click();
$this->byId("{$base}button3")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio3 checked:{1} bad_radio4 checked:{}');
$this->byId("{$base}bad_radio4")->click();
$this->byId("{$base}button3")->click();
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio3 checked:{} bad_radio4 checked:{1}');
}
}
|