summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php
blob: 268a3df4a843b4c7677334a695e4c1e390812856 (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->byId($base.'InPlaceTextBox__label')->click();
		$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->byId($base.'ctl0')->click();
		$this->pause(800);
		$this->assertText($base.'InPlaceTextBox__label', 'Prado [Read Only]');
		$this->byId($base.'InPlaceTextBox__label')->click();
		$this->pause(800);
		$this->assertNotVisible($base.'InPlaceTextBox');

	}

}