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