blob: dfa93089ca816d73de806a977b52471ee718a8cb (
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
|
<?php
class Ticket722TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket722');
$this->assertEquals($this->title(), "Verifying Ticket 722");
$label = $this->byID("{$base}InPlaceTextBox__label");
$this->assertEquals('Editable Text', $label->text());
$label->click();
$this->pause(800);
$textbox = $this->byID("{$base}InPlaceTextBox");
$this->assertTrue($textbox->displayed());
$this->type($base.'InPlaceTextBox',"Prado");
$this->pause(800);
$this->assertFalse($textbox->displayed());
$this->assertEquals('Prado', $label->text());
$this->byId("{$base}ctl0")->click();
$this->pause(800);
$this->assertEquals('Prado [Read Only]', $label->text());
$label->click();
$this->pause(800);
$this->assertFalse($textbox->displayed());
}
}
|