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

class Issue216TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$this->url('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");
	}
}