summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php
blob: 1b686d0a82cb5b9dbae6c222e3f911c5bfaa367a (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
<?php

class NestedActiveControlsTestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base='ctl0_Content_';
		$this->url("active-controls/index.php?page=NestedActiveControls");
		$this->assertTextPresent("Nested Active Controls Test");
		$this->assertText("{$base}label1", "Label 1");
		$this->assertText("{$base}label2", "Label 2");
		$this->assertTextNotPresent("Label 3");

		$this->click("div1");
		$this->pause(800);
		$this->assertTextPresent("Something lalala");
		$this->assertText("{$base}label3", "Label 3");

		$this->click("{$base}button1");
		$this->pause(800);
		$this->assertText("{$base}label1", "Label 1: Button 1 Clicked");
		$this->assertText("{$base}label2", "Label 2: Button 1 Clicked");
		$this->assertText("{$base}label3", "Label 3: Button 1 Clicked");
	}
}