summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
blob: 1cfdf0cdfa84f1b3686a7bcce8430ecf245c79e6 (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 Issue216TestCase extends SeleniumTestCase
{
	function test()
	{
		$this->open('tickets/index.php?page=Issue216');
		$this->assertTextPresent('TTabPanel doesn\'t preserve active tab on callback request');
		
		$this->assertVisible('ctl0_Content_tab1');

		$this->click("ctl0_Content_btn1");
		$this->pause(800);

		$this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 0");

		$this->click("ctl0_Content_tab2_0");
		$this->pause(800);

		$this->assertVisible('ctl0_Content_tab2');

		$this->click("ctl0_Content_btn1");
		$this->pause(800);
		$this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 1");
	}
}

?>