summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
blob: 375f90a7b5bed34d3009180a4a8b3abbae30cedd (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 PradoGenericSeleniumTest
{
	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");
	}
}