blob: 90711162f562ee83bcac95b2151bd28dabc851fa (
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
|
<?php
class Ticket722TestCase extends PradoGenericSeleniumTest
{
function test()
{
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket722');
$this->assertTitle("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->fireEvent($base.'InPlaceTextBox', 'blur'); // Release textbox
$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', 'exact:Prado [Read Only]');
$this->click($base.'InPlaceTextBox__label');
$this->pause(800);
$this->assertNotVisible($base.'InPlaceTextBox');
}
}
|