summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php
blob: d1f48cf3b7ae1cdc872a76a8bcd28c67ce296afb (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
27
28
29
30
31
32
<?php

class CallbackOptionsTestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$this->open("active-controls/index.php?page=CallbackOptionsTest");
		$this->verifyTextPresent("TCallbackOptions Test");

		$this->assertText("label1", "Label 1");
		$this->assertText("label2", "Label 2");
		$this->assertText("label3", "Label 3");

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

		$this->click("button2");
		$this->pause(800);
		$this->assertText("label1", "Button 1 has returned");
		$this->assertText("label2", "Button 2 has returned");
		$this->assertText("label3", "Label 3");

		$this->click("button3");
		$this->pause(800);
		$this->assertText("label1", "Button 1 has returned");
		$this->assertText("label2", "Button 2 has returned");
		$this->assertText("label3", "Button 3 has returned");
	}
}