blob: 222f4b7bc0c8a4130896b0e8a4078ae67a4148f7 (
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
|
<?php
class Ticket535TestCase extends SeleniumTestCase
{
function test()
{
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket535');
$this->assertTitle("Verifying Ticket 535");
$this->assertText("{$base}label1", "Label 1");
$this->click("{$base}radio1");
$this->click("{$base}button1");
$this->pause(800);
$this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
$this->click("{$base}radio2");
$this->click("{$base}button1");
$this->pause(800);
$this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
$this->click("{$base}bad_radio1");
$this->click("{$base}button2");
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
$this->click("{$base}bad_radio2");
$this->click("{$base}button2");
$this->pause(800);
$this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
}
}
?>
|