summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket769TestCase.php
blob: 03816667689e85270765a23b8ce2b8d039bd4617 (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
<?php

class Ticket769TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base="ctl0_Content_";
		$this->url('tickets/index.php?page=Ticket769');
		$this->assertEquals($this->title(), "Verifying Ticket 769");

		$this->byId($base.'ctl0')->click();
		$this->assertVisible($base.'ctl1');

		$this->type($base.'T1', 'Prado');
		$this->byId($base.'ctl0')->click();
		$this->pause(800);
		$this->assertNotVisible($base.'ctl1');
		$this->assertValue($base.'ctl0', 'T1 clicked' );

		$this->byId($base.'ctl2')->click();
		$this->pause(800);
		$this->assertText($base.'B', 'This is B');
		$this->byId($base.'ctl3')->click();
		$this->pause(800);

		$this->type($base.'T1', '');
		$this->byId($base.'ctl0')->click();
		$this->assertVisible($base.'ctl1');
		$this->type($base.'T1', 'Prado');
		$this->byId($base.'ctl0')->click();
		$this->pause(800);
		$this->assertNotVisible($base.'ctl1');
		$this->assertValue($base.'ctl0', 'T1 clicked clicked' );
	}
}