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

class NestedActiveControlsTestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$this->open("active-controls/index.php?page=NestedActiveControls");
		$this->verifyTextPresent("Nested Active Controls Test");
		$this->assertText("label1", "Label 1");
		$this->assertText("label2", "Label 2");
		$this->assertTextNotPresent("Label 3");

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

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