summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket669TestCase.php
blob: b6931808dd516505778e2c42eeeb60324d50769b (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
36
37
38
39
40
41
42
43
44
45
46
47
<?php
class Ticket669TestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->open('tickets/index.php?page=Ticket669');
		$this->assertTitle("Verifying Ticket 669");
		
		$this->assertTextPresent('1 - Test without callback');
		$this->assertValue($base.'tb1', 'exact:ActiveTextBox');
		$this->assertValue($base.'tb2', 'exact:TextBox in ActivePanel');
		
		$this->click($base.'ctl4');
		$this->pause(800);
		$this->assertValue($base.'tb1', 'exact:ActiveTextBox +1');
		$this->assertValue($base.'tb2', 'exact:TextBox in ActivePanel +1');
		
		$this->click($base.'ctl1');
		$this->pause(800);
		$this->assertTextPresent('2 - Test callback with 2nd ActivePanel');
		$this->assertValue($base.'tb3', 'exact:ActiveTextBox');
		$this->assertValue($base.'tb4', 'exact:TextBox in ActivePanel');
		$this->assertValue($base.'tb5', 'exact:TextBox in ActivePanel');
		
		$this->click($base.'ctl6');
		$this->pause(800);
		
		$this->assertValue($base.'tb3', 'exact:ActiveTextBox +1');
		$this->assertValue($base.'tb4', 'exact:TextBox in ActivePanel +1');
		$this->assertValue($base.'tb5', 'exact:TextBox in ActivePanel +1');
		
		$this->click($base.'ctl2');
		$this->pause(800);
		$this->assertTextPresent('3 - Test callback without 2nd ActivePanel');
		$this->assertValue($base.'tb6', 'exact:ActiveTextBox');
		$this->assertValue($base.'tb7', 'exact:TextBox in Panel');
		
		$this->click($base.'ctl8');
		$this->pause(800);
		
		$this->assertValue($base.'tb6', 'exact:ActiveTextBox +1');
		$this->assertValue($base.'tb7', 'exact:TextBox in Panel +1');
		
	}

}