summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
blob: d71db0e17e989d20d8665f0b083d456035e6175e (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->assertContains('TTabPanel doesn\'t preserve active tab on callback request', $this->source());

		$this->assertVisible('ctl0_Content_tab1');

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

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

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

		$this->assertVisible('ctl0_Content_tab2');

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